feat: add crucible image and sow-tools binary channel promote
build-binaries / build-binaries (pull_request) Successful in 2m10s
test-image / build-image (pull_request) Successful in 38s
test / test (pull_request) Failing after 57s

This commit is contained in:
Westgate Agent
2026-06-27 18:15:08 +02:00
parent dd92379b68
commit 7589c5f220
6 changed files with 220 additions and 0 deletions
+18
View File
@@ -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
'