ci(promote): pass the version through env, not into the script

This commit is contained in:
sam committed 2026-11-13 03:03:30 +11:00
1 parent d7741d6088
commit f3a379add1
1 file changed
+6 -2
+6 -2
View File
@@ -24,16 +24,20 @@ jobs:
run: echo "${{ secrets.DEPLOY_TOKEN }}" | docker login git.catlow.cloud -u "${{ github.actor }}" --password-stdin
- name: Fetch the release's archied
env:
VERSION: ${{ inputs.version }}
run: |
set -e
image="git.catlow.cloud/sam/archied:v${{ inputs.version }}"
image="git.catlow.cloud/sam/archied:v$VERSION"
docker pull -q "$image"
container="$(docker create "$image")"
docker cp "$container:/usr/local/bin/archied" "$RUNNER_TEMP/archied"
docker rm "$container" >/dev/null
- name: Promote to stable
env:
VERSION: ${{ inputs.version }}
run: |
"$RUNNER_TEMP/archied" release promote \
-version "${{ inputs.version }}" \
-version "$VERSION" \
-latest git.catlow.cloud/sam/archied,git.catlow.cloud/sam/archie-agent