From 5df71b6de33e1bb40572f59b737c444c58ab0163 Mon Sep 17 00:00:00 2001 From: Francesco Canovai Date: Thu, 13 Aug 2026 14:27:50 +0200 Subject: [PATCH 1/2] ci: add missing release workflow Version 0.0.18 missed releasing images because the publishing task was not called on release Closes #99 Signed-off-by: Francesco Canovai --- .github/workflows/release-publish.yml | 33 +++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/release-publish.yml diff --git a/.github/workflows/release-publish.yml b/.github/workflows/release-publish.yml new file mode 100644 index 00000000..6d87b6c6 --- /dev/null +++ b/.github/workflows/release-publish.yml @@ -0,0 +1,33 @@ +name: Release Publish +on: + release: + types: [published] + +permissions: + contents: write + packages: write + +jobs: + release-publish: + runs-on: ${{ github.repository_owner == 'cloudnative-pg' && 'ubuntu-latest-16-cores' || 'ubuntu-latest' }} + steps: + - name: Checkout + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + with: + fetch-depth: 0 + + - name: Setup dagger + uses: ./.github/actions/setup-dagger + + - name: Login to ghcr.io + uses: docker/login-action@abd2ef45e78c5afb21d64d4ca52ee8550d9572c7 # v4 + with: + registry: "ghcr.io" + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Publish packages, images, helm chart + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + task all:publish \ No newline at end of file From ffe760dc1a3737d94cbc94eba0138e6debc3e952 Mon Sep 17 00:00:00 2001 From: John Long Date: Thu, 13 Aug 2026 08:59:36 -0400 Subject: [PATCH 2/2] ci: review Align docker login action, add newline Co-Authored-By: Claude Opus 5 Signed-off-by: John Long --- .github/workflows/release-publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-publish.yml b/.github/workflows/release-publish.yml index 6d87b6c6..a92fbbf0 100644 --- a/.github/workflows/release-publish.yml +++ b/.github/workflows/release-publish.yml @@ -20,7 +20,7 @@ jobs: uses: ./.github/actions/setup-dagger - name: Login to ghcr.io - uses: docker/login-action@abd2ef45e78c5afb21d64d4ca52ee8550d9572c7 # v4 + uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4 with: registry: "ghcr.io" username: ${{ github.actor }} @@ -30,4 +30,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - task all:publish \ No newline at end of file + task all:publish