Skip to content

Commit

Permalink
Merge pull request #2 from mesosphere/mh/ghcr-token
Browse files Browse the repository at this point in the history
fix: use gha token for ghcr.io
  • Loading branch information
mhrabovcin authored Sep 12, 2024
2 parents b2b06d9 + 880437f commit 232e573
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ jobs:
if: ${{ github.event_name != 'pull_request' }}
needs: build
runs-on: ubuntu-latest
permissions:
packages: write
defaults:
run:
shell: bash
Expand All @@ -103,11 +105,11 @@ jobs:
labels: ${{ env.CONTAINER_LABELS }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Publish Cruise Control container image
uses: docker/build-push-action@v4
Expand Down

0 comments on commit 232e573

Please sign in to comment.