Skip to content

Publish the draft release created by cd.yml, and upload GHCR image #7

Publish the draft release created by cd.yml, and upload GHCR image

Publish the draft release created by cd.yml, and upload GHCR image #7

Workflow file for this run

name: "CD: Publish"
on:
workflow_dispatch:
inputs:
sha:
description: 'The SHA of the commit to build'
required: true
type: string
tag:
description: 'The tag for the release'
required: true
type: string
permissions:
id-token: write
contents: write
packages: write
jobs:
publish-ghcr:
runs-on: ubuntu-latest
steps:
- name: Checkout the Specified Branch
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- name: Publish to GHCR
uses: ./.github/actions/images/publish-ghcr
with:
sha: ${{ github.event.inputs.sha }}
tag: ${{ github.event.inputs.tag }}
env:
AWS_REGION: "eu-central-1"
ECR_REGISTRY_SECRET: ${{ secrets.ECR_REGISTRY_SECRET }}
AWS_ROLE_ARN_SECRET: ${{ secrets.AWS_ROLE_ARN_SECRET }}
ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
publish-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Publish Release
uses: ./.github/actions/release/publish-draft-release
with:
tag: ${{ inputs.tag }}
env:
GITHUB_TOKEN: ${{ github.token }}