Skip to content

Commit

Permalink
ci(ghcr): try different token
Browse files Browse the repository at this point in the history
  • Loading branch information
NoUseFreak committed Feb 29, 2024
1 parent 614c448 commit 46849ed
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/image-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,18 @@ jobs:
uses: docker/setup-buildx-action@v2

- name: Login to GHCR
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ env.PAT }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v2
with:
context: ${{ env.DOCKER_CONTEXT_DIR }}
platforms: ${{ inputs.docker_platforms }}
push: true
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-to: type=gha
Expand Down Expand Up @@ -125,12 +124,11 @@ jobs:
uses: docker/setup-buildx-action@v2

- name: Login to GHCR
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ env.PAT }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v2
Expand All @@ -140,4 +138,4 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-from: type=gha

0 comments on commit 46849ed

Please sign in to comment.