auth update
This commit is contained in:
parent
8abaf4edad
commit
88956d4a77
2 changed files with 5 additions and 4 deletions
2
.github/workflows/ci.yaml
vendored
2
.github/workflows/ci.yaml
vendored
|
|
@ -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
|
||||
|
|
|
|||
7
Makefile
7
Makefile
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue