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 6bfed98
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/prebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@ jobs:
- 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 }} .

- name: Lowercase container registry name
run: echo "::set-env name=CR_NAME::$(echo ghcr.io/${{ github.repository }} | tr '[:upper:]' '[:lower:]')"

- 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 6bfed98

Please sign in to comment.