File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 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 }}"
You can’t perform that action at this time.
0 commit comments