Skip to content

Commit

Permalink
ci: add login step for GHCR
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicconike committed Sep 17, 2024
1 parent 79add4e commit 0416cfe
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,22 @@ jobs:
username: ${{ vars.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}

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

- name: Extract Docker Metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ vars.DOCKER_USERNAME }}/wakatime-leaderboards
ghcr.io/${{ github.repository_owner }}/Wakatime-Leaderboards
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=ref,event=tag,pattern={{tag}}
type=sha
- name: Build & Push Docker Image
Expand Down

0 comments on commit 0416cfe

Please sign in to comment.