Skip to content

Commit

Permalink
changed the github action code
Browse files Browse the repository at this point in the history
  • Loading branch information
vishreddy01 committed Apr 16, 2024
1 parent 24abbdd commit dea41c6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/docker-pg2pg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}

0 comments on commit dea41c6

Please sign in to comment.