diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c7150b1..dc22229 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -142,12 +142,12 @@ jobs: - name: Setup the Crossplane CLI run: "curl -sL https://raw.githubusercontent.com/crossplane/crossplane/master/install.sh | sh" - - name: Login to Upbound + - name: Login to GHCR uses: docker/login-action@v3 - if: env.XPKG_ACCESS_ID != '' + if: secrets.DOCKER_USERNAME != '' with: - registry: xpkg.upbound.io - username: ${{ secrets.XPKG_ACCESS_ID }} + registry: ghcr.io + username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} # If a version wasn't explicitly passed as a workflow_dispatch input we @@ -159,5 +159,5 @@ jobs: run: echo "XPKG_VERSION=v0.0.0-$(date -d@$(git show -s --format=%ct) +%Y%m%d%H%M%S)-$(git rev-parse --short=12 HEAD)" >> $GITHUB_ENV - name: Push Multi-Platform Package to Upbound - if: env.XPKG_ACCESS_ID != '' + if: secrets.DOCKER_USERNAME != '' run: "./crossplane --verbose xpkg push --package-files $(echo *.xpkg|tr ' ' ,) ${{ env.XPKG }}:${{ env.XPKG_VERSION }}"