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