Skip to content

Commit 0fba09a

Browse files
committed
Push function-kcl to GHCR
Signed-off-by: Nic Cope <nicc@rk0n.org>
1 parent 53a9ad3 commit 0fba09a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ env:
3333
# The package to push, without a version tag. The default matches GitHub. For
3434
# example xpkg.upbound.io/crossplane/function-template-go.
3535
XPKG: xpkg.upbound.io/${{ github.repository}}
36+
CROSSPLANE_REGORG: ghcr.io/${{ github.repository}} # xpkg.crossplane.io/crossplane-contrib
3637

3738
# The package version to push. The default is 0.0.0-gitsha.
3839
XPKG_VERSION: v0.11.3
@@ -167,3 +168,14 @@ jobs:
167168
- name: Push Latest Package to Upbound
168169
if: env.XPKG_ACCESS_ID != ''
169170
run: "./crossplane --verbose xpkg push --package-files $(echo *.xpkg|tr ' ' ,) ${{ env.XPKG }}:latest"
171+
172+
- name: Login to GHCR
173+
uses: docker/login-action@v3
174+
with:
175+
registry: ghcr.io
176+
username: ${{ github.repository_owner }}
177+
password: ${{ secrets.GITHUB_TOKEN }}
178+
179+
- name: Push Multi-Platform Package to GHCR
180+
run: "./crossplane --verbose xpkg push --package-files $(echo *.xpkg|tr ' ' ,) ${{ env.CROSSPLANE_REGORG }}:${{ env.XPKG_VERSION }}"
181+

0 commit comments

Comments
 (0)