Skip to content

Commit 281b892

Browse files
committed
fix(ci): maybe I'll get this to work...
1 parent e444a4e commit 281b892

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ jobs:
1313
- name: Checkout repository
1414
uses: actions/checkout@v4
1515

16+
- name: Login to GitHub Container Registry
17+
uses: docker/login-action@v3
18+
with:
19+
registry: ghcr.io
20+
username: ${{ github.actor }}
21+
password: "${{ secrets.GITHUB_TOKEN }}"
22+
1623
- name: Install Crossplane CLI
1724
run: |
1825
curl -sL "https://raw.githubusercontent.com/crossplane/crossplane/master/install.sh" | sh
@@ -27,6 +34,5 @@ jobs:
2734
- name: Publish Configuration package to GHCR
2835
run: |
2936
echo "### Publish .xpkg to GHCR"
30-
printf "%s" "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u "${{ github.actor }}" --password-stdin
31-
crossplane xpkg push --package-files=package.xpkg ghcr.io/jacaudi/nextdns-crossplane-composition:latest --verbose
37+
crossplane xpkg push --domain=https://ghcr.io --package-files=package.xpkg ghcr.io/jacaudi/nextdns-crossplane-composition:latest --verbose
3238

0 commit comments

Comments
 (0)