Skip to content

Commit

Permalink
use docker/login-action
Browse files Browse the repository at this point in the history
  • Loading branch information
adoroszlai committed Nov 3, 2024
1 parent e739384 commit 5788f33
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,13 @@ jobs:
if: ${{ steps.pull.outputs.success != 'true' }}
uses: docker/setup-buildx-action@v3

- name: Login to ghcr.io
- name: Login to GitHub Container Registry
if: ${{ github.event_name == 'push' }}
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push multi-platform image
if: ${{ steps.pull.outputs.success != 'true' }}
Expand Down

0 comments on commit 5788f33

Please sign in to comment.