Skip to content

Commit

Permalink
fix: ci login
Browse files Browse the repository at this point in the history
  • Loading branch information
niklastreml committed Feb 8, 2024
1 parent bd1d94b commit 79f000c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}"

0 comments on commit 79f000c

Please sign in to comment.