auth update
This commit is contained in:
parent
008c8a1174
commit
45002486eb
2 changed files with 4 additions and 3 deletions
6
.github/workflows/ci.yaml
vendored
6
.github/workflows/ci.yaml
vendored
|
|
@ -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
|
||||
|
|
|
|||
1
Makefile
1
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue