name: promote on: workflow_dispatch: inputs: version: description: "published release to move stable to, such as 1.63.0" required: true type: string concurrency: group: promote cancel-in-progress: true permissions: contents: read packages: write jobs: promote: runs-on: self-hosted steps: - name: Log in to the Gitea registry 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$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 "$VERSION" \ -latest git.catlow.cloud/sam/archied,git.catlow.cloud/sam/archie-agent