From 74a944975d69bd942bdc4cc15809f66063c77697 Mon Sep 17 00:00:00 2001 From: SnskArora Date: Sat, 22 Mar 2025 15:58:22 +0530 Subject: [PATCH] auth update --- .github/workflows/ci.yaml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3677d77..1a81287 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -27,13 +27,6 @@ jobs: - name: Refresh module hashsums run: make tidy - - name: Build - run: | - echo "${{ steps.generate_token.outputs.token }}" | docker login docker.pkg.github.com -u snskArora --password-stdin - make build - env: - VERSION: latest - AUTH: ${{ steps.generate_token.outputs.token }} - name: Generate token id: generate_token @@ -42,6 +35,17 @@ jobs: app_id: ${{ secrets.APP_ID }} private_key: ${{ secrets.APP_PRIVATE_KEY }} + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: snskArora + password: ${{ steps.generate_token.outputs.token }} + - name: Build + run: make build + env: + VERSION: latest + - name: Push run: make push env: