revert: drop redundant utility channel promote
This commit is contained in:
@@ -69,21 +69,3 @@ 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
|
||||
'
|
||||
|
||||
@@ -50,22 +50,3 @@ jobs:
|
||||
bash scripts/emit-release-fragment.sh
|
||||
- uses: actions/upload-artifact@v3
|
||||
with: { name: release-fragment, path: release-fragment.json }
|
||||
|
||||
# Service tier: only vX.Y.Z → release; anything else rejects.
|
||||
# SHA is the 12-char git SHA from the "Resolve tag" step above.
|
||||
- name: Promote channel
|
||||
env:
|
||||
TAG: ${{ github.ref_name }}
|
||||
SHA: ${{ steps.tag.outputs.sha }}
|
||||
GITEA_TOKEN: ${{ secrets.PACKAGE_TOKEN }}
|
||||
GITEA_SERVER: ${{ github.server_url }}
|
||||
GITEA_OWNER: ${{ github.repository_owner }}
|
||||
REGISTRY_HOST: ${{ env.REGISTRY }}
|
||||
REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
|
||||
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
run: |
|
||||
if [[ "$TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
||||
nix shell nixpkgs#skopeo --command bash scripts/promote-crucible.sh release "$SHA"
|
||||
else
|
||||
printf 'unsupported tag for service tier: %s\n' "$TAG" >&2; exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user