Compare commits
1 commit
16d2b19440
...
a7ad6eb32a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a7ad6eb32a |
2 changed files with 2 additions and 19 deletions
17
bin/disinto
17
bin/disinto
|
|
@ -2654,10 +2654,6 @@ disinto_release() {
|
|||
local id="release-${version//./}"
|
||||
local vault_toml="${ops_root}/vault/pending/${id}.toml"
|
||||
|
||||
# Read the release formula and inject version
|
||||
local formula_content
|
||||
formula_content=$(cat "$formula_path")
|
||||
|
||||
# Create vault TOML with the specific version
|
||||
cat > "$vault_toml" <<EOF
|
||||
# vault/pending/${id}.toml
|
||||
|
|
@ -2697,19 +2693,6 @@ This PR creates a vault item for the release of version ${version}.
|
|||
git commit -m "$pr_title" -m "$pr_body" 2>/dev/null || true
|
||||
|
||||
# Push branch
|
||||
local auth_url
|
||||
auth_url=$(printf '%s' "http://dev-bot:${FORGE_TOKEN}@$(echo "$FORGE_URL" | sed 's|https\{0,1}://||')" )
|
||||
local remote_url="${auth_url}/${PROJECT_REPO%/disinto}/.git"
|
||||
|
||||
if ! git remote get-url origin >/dev/null 2>&1; then
|
||||
# Get the actual remote URL from FORGE_URL
|
||||
local forge_host
|
||||
forge_host=$(echo "$FORGE_URL" | sed 's|https\{0,1}://||' | sed 's|/.*||')
|
||||
local org_repo
|
||||
org_repo=$(echo "$PROJECT_REPO" | sed 's|.*||')
|
||||
remote_url="http://dev-bot:${FORGE_TOKEN}@${forge_host}/${PROJECT_REPO}.git"
|
||||
fi
|
||||
|
||||
git push -u origin "$branch_name" 2>/dev/null || {
|
||||
echo "Error: failed to push branch" >&2
|
||||
exit 1
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
#
|
||||
# Example vault item (auto-generated by `disinto release v1.2.0`):
|
||||
#
|
||||
# id = "release-v1-2-0"
|
||||
# id = "release-v120"
|
||||
# formula = "release"
|
||||
# context = "Release v1.2.0"
|
||||
# secrets = []
|
||||
|
|
@ -23,7 +23,7 @@
|
|||
# 6. restart-agents - Restart agent containers with new image
|
||||
# 7. commit-result - Write release result to tracking file
|
||||
|
||||
id = "release-v1-2-0"
|
||||
id = "release-v120"
|
||||
formula = "release"
|
||||
context = "Release v1.2.0 — includes vault redesign, .profile system, architect agent"
|
||||
secrets = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue