From dea41c6f618530597f29f5363f544d9d3f4d582b Mon Sep 17 00:00:00 2001 From: vishreddy01 Date: Tue, 16 Apr 2024 14:16:14 -0700 Subject: [PATCH] changed the github action code --- .github/workflows/docker-pg2pg.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/docker-pg2pg.yaml b/.github/workflows/docker-pg2pg.yaml index 97a62c1..1c2d135 100644 --- a/.github/workflows/docker-pg2pg.yaml +++ b/.github/workflows/docker-pg2pg.yaml @@ -2,7 +2,7 @@ name: Push to GHCR on: push: - branches: [ "main" ] + branches: [ "ods-replication-pg2pg" ] env: # DF-NOTE: pull ghcr.io/bcgov/nr-dap-ods-trino:main @@ -55,11 +55,11 @@ jobs: cache-from: type=gha cache-to: type=gha,mode=max - #- name: Sign the published Docker image - #if: ${{ github.event_name != 'pull_request' }} - #env: - # https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable - #TAGS: ${{ steps.meta.outputs.tags }} - #DIGEST: ${{ steps.build-and-push.outputs.digest }} + - name: Sign the published Docker image + if: ${{ github.event_name != 'pull_request' }} + env: + https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable + TAGS: ${{ steps.meta.outputs.tags }} + DIGEST: ${{ steps.build-and-push.outputs.digest }} - #run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST} + run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}