diff --git a/.github/workflows/release-publish.yml b/.github/workflows/release-publish.yml new file mode 100644 index 00000000..a92fbbf0 --- /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@dbcb813823bdd20940b903addbd779551569679f # 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