Skip to content

Commit

Permalink
Lower case registry name
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuscruz committed Nov 28, 2024
1 parent 114e444 commit b9bd2c1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/prebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,17 @@ jobs:
id: replica_sha
run: echo "::set-output name=sha256::$(sha256sum postgres_replica.dockerfile | awk '{ print substr($1, 1, 12) }')"

- name: Compute container registry name
run: echo "CR_NAME::$(echo ghcr.io/${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV

- name: Build and tag primary Docker image
run: docker build -f postgres_primary.dockerfile -t ghcr.io/${{ github.repository }}/postgres_primary:${{ steps.primary_sha.outputs.sha256 }} .
run: docker build -f postgres_primary.dockerfile -t $CR_NAME/postgres_primary:${{ steps.primary_sha.outputs.sha256 }} .

- name: Build and tag replica Docker image
run: docker build -f postgres_replica.dockerfile -t ghcr.io/${{ github.repository }}/postgres_replica:${{ steps.replica_sha.outputs.sha256 }} .
run: docker build -f postgres_replica.dockerfile -t $CR_NAME/postgres_replica:${{ steps.replica_sha.outputs.sha256 }} .

- name: Push primary Docker image
run: docker push ghcr.io/${{ github.repository }}/postgres_primary:${{ steps.primary_sha.outputs.sha256 }}
run: docker push $CR_NAME/postgres_primary:${{ steps.primary_sha.outputs.sha256 }}

- name: Push replica Docker image
run: docker push ghcr.io/${{ github.repository }}/postgres_replica:${{ steps.replica_sha.outputs.sha256 }}
run: docker push $CR_NAME/postgres_replica:${{ steps.replica_sha.outputs.sha256 }}

0 comments on commit b9bd2c1

Please sign in to comment.