From 463868f10d45ebe2e607735c5f3810463501d17b Mon Sep 17 00:00:00 2001 From: Timur Demin Date: Thu, 9 Sep 2021 17:42:58 +0500 Subject: [PATCH] Use no dedicated secrets in GitHub Actions --- .github/workflows/docker.yml | 6 +++--- .github/workflows/goreleaser.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index ac376e2..7b0d264 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -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 }} diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 0559486..f6dfc53 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -22,4 +22,4 @@ jobs: version: latest args: release --rm-dist env: - GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}