From 1dfd559bc6c3248a9d2c021a153e3acdc255ec81 Mon Sep 17 00:00:00 2001 From: Nic Cope Date: Sat, 21 Oct 2023 22:24:17 -0700 Subject: [PATCH] Push to GHCR instead of uploading artifact Signed-off-by: Nic Cope --- .github/workflows/ci.yml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a917ac9..2b9454e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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