ci(promote): pass the version through env, not into the script
This commit is contained in:
1 file changed
+6
-2
@@ -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
|
||||
Reference in new issue
Block a user