auth update

This commit is contained in:
SnskArora 2025-03-22 15:49:18 +05:30
parent 008c8a1174
commit 45002486eb
No known key found for this signature in database
GPG key ID: 6EC7FEA48093AB59
2 changed files with 4 additions and 3 deletions

View file

@ -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

View file

@ -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