| 1 |
name: Release Production |
| 2 |
|
| 3 |
on: |
| 4 |
workflow_dispatch: |
| 5 |
inputs: |
| 6 |
DRY_RUN: |
| 7 |
description: "Run in test mode without publishing artifacts" |
| 8 |
required: false |
| 9 |
default: false |
| 10 |
type: boolean |
| 11 |
push: |
| 12 |
tags: |
| 13 |
- "v[0-9]*.[0-9]*.[0-9]*" |
| 14 |
|
| 15 |
permissions: |
| 16 |
contents: read # Set default read-only permissions |
| 17 |
|
| 18 |
jobs: |
| 19 |
test: |
| 20 |
name: Run Tests |
| 21 |
uses: ./.github/workflows/test.yaml |
| 22 |
permissions: |
| 23 |
contents: read # For code checkout |
| 24 |
|
| 25 |
build: |
| 26 |
name: Run Build |
| 27 |
needs: [test] |
| 28 |
uses: ./.github/workflows/build.yaml |
| 29 |
permissions: |
| 30 |
contents: write # For code checkout and publishing releases |
| 31 |
packages: write # For pushing images to registries |
| 32 |
attestations: write # For generating provenance and SBOMs |
| 33 |
id-token: write # For OIDC auth to Docker Hub and GHCR |
| 34 |
secrets: |
| 35 |
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} |
| 36 |
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} |
| 37 |
with: |
| 38 |
ENVIRONMENT: CI-Release |
| 39 |
BUILD_TYPE: stable |
| 40 |
DRY_RUN: ${{ inputs.DRY_RUN || false }} |
| 41 |
|
| 42 |
update-go-docs: |
| 43 |
name: Run Go Pkg Update |
| 44 |
needs: build |
| 45 |
if: ${{ !inputs.DRY_RUN }} |
| 46 |
permissions: |
| 47 |
contents: read |
| 48 |
uses: ./.github/workflows/update-go-docs.yaml |
| 49 |
|
| 50 |
publish-docs: |
| 51 |
name: Publish Documentation |
| 52 |
needs: build |
| 53 |
if: ${{ !inputs.DRY_RUN }} |
| 54 |
permissions: |
| 55 |
contents: write |
| 56 |
actions: read |
| 57 |
uses: ./.github/workflows/publish-docs.yaml |
| 58 |
with: |
| 59 |
version: ${{ github.ref_name }} |