Skip to content

Commit 04944b0

Browse files
committed
fix(ci): use dynamic repository owner in GHCR publish step
1 parent e6bec18 commit 04944b0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/publish-latest-crossplane-composition.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ jobs:
3535
- name: Publish Configuration package to GHCR
3636
run: |
3737
echo "### Publish .xpkg to GHCR"
38-
crossplane xpkg push --verbose --package-files=package.xpkg ghcr.io/jacaudi/nextdns-crossplane-composition:latest
38+
crossplane xpkg push --verbose --package-files=package.xpkg ghcr.io/${{ github.repository_owner }}/nextdns-crossplane-composition:latest
3939

.github/workflows/publish-tagged-crossplane-composition.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ jobs:
2929
- name: Build Crossplane Configuration package
3030
run: |
3131
echo "### Build Configuration .xpkg file"
32-
crossplane xpkg build --package-file="nextdns-crossplane-composition.xpkg" --package-root=. --examples-root="./example" --ignore=".github/workflows/*" --verbose
32+
crossplane xpkg build --package-file="package.xpkg" --package-root=. --examples-root="./example" --ignore=".github/workflows/*" --verbose
3333
3434
- name: Publish Configuration package to GHCR
3535
run: |
3636
echo "### Publish .xpkg to GHCR"
3737
TAG_NAME=${GITHUB_REF#refs/tags/}
38-
crossplane xpkg push "ghcr.io/${{ github.repository_owner }}/nextdns-crossplane-composition:${TAG_NAME}" --domain=https://ghcr.io --verbose
38+
crossplane xpkg push --verbose --package-files=package.xpkg "ghcr.io/${{ github.repository_owner }}/nextdns-crossplane-composition:${TAG_NAME}"
3939

0 commit comments

Comments
 (0)