feat: add crucible image and sow-tools binary channel promote
This commit is contained in:
@@ -69,3 +69,21 @@ jobs:
|
||||
"${api}/releases/${id}/assets?name=$(basename "$f")"
|
||||
done
|
||||
'
|
||||
|
||||
- name: Promote channel
|
||||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
|
||||
env:
|
||||
TAG: ${{ github.ref_name }}
|
||||
GITEA_TOKEN: ${{ secrets.PACKAGE_TOKEN }}
|
||||
GITEA_SERVER: ${{ github.server_url }}
|
||||
GITEA_OWNER: ${{ github.repository_owner }}
|
||||
GITEA_REPO: ${{ github.repository }}
|
||||
run: |
|
||||
nix develop --command bash -c '
|
||||
set -euo pipefail
|
||||
if [[ "$TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
||||
bash scripts/promote-sow-tools.sh release "$TAG"
|
||||
else
|
||||
printf "unsupported tag for service tier: %s\n" "$TAG" >&2; exit 1
|
||||
fi
|
||||
'
|
||||
|
||||
Reference in New Issue
Block a user