diff --git a/.github/workflows/promote.yml b/.github/workflows/promote.yml index c94f15d3d..13a783f1f 100644 --- a/.github/workflows/promote.yml +++ b/.github/workflows/promote.yml @@ -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