Use no dedicated secrets in GitHub Actions

This commit is contained in:
Timur Demin 2021-09-09 17:42:58 +05:00
parent bcc3d8b730
commit 463868f10d
No known key found for this signature in database
GPG key ID: 9EDF3F9D9286FA20
2 changed files with 4 additions and 4 deletions

View file

@ -18,7 +18,7 @@ jobs:
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_TOKEN }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build & push
uses: docker/build-push-action@v2
with:
@ -26,5 +26,5 @@ jobs:
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/tdemin/gmnhg:latest
ghcr.io/tdemin/gmnhg:${{ github.event.release.tag_name }}
ghcr.io/${{ github.repository }}:latest
ghcr.io/${{ github.repository }}:${{ github.event.release.tag_name }}

View file

@ -22,4 +22,4 @@ jobs:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}