auth update

This commit is contained in:
SnskArora 2025-03-22 15:28:09 +05:30
parent 8abaf4edad
commit 88956d4a77
No known key found for this signature in database
GPG key ID: 6EC7FEA48093AB59
2 changed files with 5 additions and 4 deletions

View file

@ -40,7 +40,7 @@ jobs:
run: make push
env:
VERSION: latest
GH_TOKEN: ${{ steps.generate_token.outputs.token }}
AUTH: ${{ steps.generate_token.outputs.token }}
- name: Test
run: make test

View file

@ -7,7 +7,7 @@ tidy:
.PHONY: build
build:
@if [ -z "$$VERSION" ]; then \
@if [ -z "$(VERSION)" ]; then \
echo "VERSION is required"; \
exit 1; \
fi
@ -15,11 +15,12 @@ build:
.PHONY: push
push:
@if [ -z "$$VERSION" ]; then \
@if [ -z "$(VERSION)" ]; then \
echo "VERSION is required"; \
exit 1; \
fi
docker push $(IMAGE_REPO):$$VERSION
@echo $(AUTH) | docker login ghcr.io -u snskArora --password-stdin
docker push $(IMAGE_REPO):$(VERSION)
.PHONY: test
test: