From 79f000c14c6437392b084b4cb7b0344b2cd113bf Mon Sep 17 00:00:00 2001 From: Niklas Treml Date: Thu, 8 Feb 2024 11:58:41 +0100 Subject: [PATCH] fix: ci login --- .github/workflows/ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 }}"