Files
archie/.github/workflows/promote.yml
T

40 lines
1.1 KiB
YAML

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
run: |
set -e
image="git.catlow.cloud/sam/archied:v${{ inputs.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
run: |
"$RUNNER_TEMP/archied" release promote \
-version "${{ inputs.version }}" \
-latest git.catlow.cloud/sam/archied,git.catlow.cloud/sam/archie-agent