From 0416cfe324114540bf0a14caeb64409b173be6c6 Mon Sep 17 00:00:00 2001 From: Nicconike <38905025+Nicconike@users.noreply.github.com> Date: Wed, 18 Sep 2024 03:40:08 +0530 Subject: [PATCH] ci: add login step for GHCR --- .github/workflows/release.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3bb7752..1173c8a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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