auth update

This commit is contained in:
SnskArora 2025-03-22 15:58:22 +05:30
parent d2cb5280bd
commit 74a944975d
No known key found for this signature in database
GPG key ID: 6EC7FEA48093AB59

View file

@ -27,13 +27,6 @@ jobs:
- name: Refresh module hashsums
run: make tidy
- name: Build
run: |
echo "${{ steps.generate_token.outputs.token }}" | docker login docker.pkg.github.com -u snskArora --password-stdin
make build
env:
VERSION: latest
AUTH: ${{ steps.generate_token.outputs.token }}
- name: Generate token
id: generate_token
@ -42,6 +35,17 @@ jobs:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: snskArora
password: ${{ steps.generate_token.outputs.token }}
- name: Build
run: make build
env:
VERSION: latest
- name: Push
run: make push
env: