Skip to content

Commit 7348b47

Browse files
committed
Push builds to ghcr.io/crossplane-contrib
Signed-off-by: Nic Cope <[email protected]>
1 parent 826e48c commit 7348b47

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/ci.yml

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

3435
# The package version to push. The default is 0.0.0-gitsha.
3536
XPKG_VERSION: ${{ inputs.version }}
@@ -164,3 +165,14 @@ jobs:
164165
- name: Push Multi-Platform Package to Upbound
165166
if: env.XPKG_ACCESS_ID != ''
166167
run: "./crossplane --verbose xpkg push --package-files $(echo *.xpkg|tr ' ' ,) ${{ env.XPKG }}:${{ env.XPKG_VERSION }}"
168+
169+
- name: Login to GHCR
170+
uses: docker/login-action@v3
171+
with:
172+
registry: ghcr.io
173+
username: ${{ github.repository_owner }}
174+
password: ${{ secrets.GITHUB_TOKEN }}
175+
176+
- name: Push Multi-Platform Package to GHCR
177+
if: env.XPKG_ACCESS_ID != ''
178+
run: "./crossplane --verbose xpkg push --package-files $(echo *.xpkg|tr ' ' ,) ${{ env.CROSSPLANE_REGORG }}:${{ env.XPKG_VERSION }}"

0 commit comments

Comments
 (0)