Skip to content

Post-Release Gate

Post-Release Gate #18

Workflow file for this run

name: Post-Release Gate
on:
workflow_run:
workflows: [Release]
types: [completed]
permissions: read-all
jobs:
verify:
name: Post-Release Verification
runs-on: ubuntu-latest
if: github.event.workflow_run.conclusion == 'success'
permissions:
contents: read
packages: read
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Extract version from triggering tag
id: ver
run: |
TAG="${{ github.event.workflow_run.head_branch }}"
echo "version=${TAG#v}" >> "$GITHUB_OUTPUT"
- name: Install cosign
uses: sigstore/cosign-installer@cad07c2e89fa2edd6e2d7bab4c1aa38e53f76003 # v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Log in to Docker Hub
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Run post-release gate
env:
VERSION: ${{ steps.ver.outputs.version }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./scripts/post-release-gate.sh