Skip to content

Commit

Permalink
chore: use the github.repository as the registry path
Browse files Browse the repository at this point in the history
To avoid having the wrong registry in a forked project we use the
github.repository variable and push these to the right owner registry.

Signed-off-by: Jonathan Gonzalez V. <[email protected]>
  • Loading branch information
sxd committed Aug 30, 2024
1 parent 561fe3b commit 65b25e5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-commitfest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:

# set up environment variables to be used across all the jobs
env:
REGISTRY: "ghcr.io/cloudnative-pg/postgresql-trunk"
REGISTRY: "ghcr.io/${{ github.repository_owner }}/postgresql-trunk"
TAG: "commitfest-master"
BRANCH: "master"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:

# set up environment variables to be used across all the jobs
env:
REGISTRY: "ghcr.io/cloudnative-pg/postgresql-trunk"
REGISTRY: "ghcr.io/${{ github.repository_owner }}/postgresql-trunk"
TAG: "dev-${{ github.run_number }}"

defaults:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/continuous-delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ env:
GOLANG_VERSION: "1.22.x"
KIND_VERSION: "v0.23.0"
K8S_VERSION: "v1.30.2"
REGISTRY: "ghcr.io/cloudnative-pg/postgresql-trunk"
REGISTRY: "ghcr.io/${{ github.repository_owner }}/postgresql-trunk"
POSTGRES_VERSION: "17-devel"

defaults:
Expand Down

0 comments on commit 65b25e5

Please sign in to comment.