From 45002486eb3f98372512139de5006f934380ee7a Mon Sep 17 00:00:00 2001 From: SnskArora Date: Sat, 22 Mar 2025 15:49:18 +0530 Subject: [PATCH] auth update --- .github/workflows/ci.yaml | 6 ++++-- Makefile | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e6a8591..1ea2b95 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -28,9 +28,12 @@ jobs: - name: Refresh module hashsums run: make tidy - name: Build - run: make build + run: | + docker login ghcr.io -u snskArora --password $AUTH + make build env: VERSION: latest + AUTH: ${{ steps.generate_token.outputs.token }} - name: Generate token id: generate_token @@ -43,7 +46,6 @@ jobs: run: make push env: VERSION: latest - AUTH: ${{ steps.generate_token.outputs.token }} - name: Test run: make test diff --git a/Makefile b/Makefile index f57fda3..77e0527 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,6 @@ push: echo "VERSION is required"; \ exit 1; \ fi - @echo $(AUTH) | docker login ghcr.io -u snskarora --password-stdin docker push $(IMAGE_REPO):$(VERSION) .PHONY: test