Skip to content

Commit

Permalink
Push to GHCR instead of uploading artifact
Browse files Browse the repository at this point in the history
Signed-off-by: Nic Cope <[email protected]>
  • Loading branch information
negz committed Oct 22, 2023
1 parent aec329d commit 1dfd559
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,25 +95,23 @@ jobs:

- name: Build Package
run: ./crossplane xpkg build --package-file=${{ matrix.arch }}.xpkg --package-root=package/ --embed-runtime-image-tarball=runtime.tar
- name: Upload Package
uses: actions/upload-artifact@v3

- name: Login to GHCR
uses: docker/login-action@v3
with:
name: packages
path: "*.xpkg"
if-no-files-found: error
retention-days: 1
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push Package to GHCR
run: ./crossplane xpkg push --package-file=${{ matrix.arch }}.xpkg --tag ghcr.io/${{ github.repository }}/${{ github.sha }}-${{ matrix.arch }}


push:
runs-on: ubuntu-22.04
needs:
- build
steps:
- name: Download Packages
uses: actions/download-artifact@v3
with:
name: packages
path: .

- name: Login to Upbound
uses: docker/login-action@v3
Expand Down

0 comments on commit 1dfd559

Please sign in to comment.