From fe257ddb059c5b6c12f317f38b09deec76c53f58 Mon Sep 17 00:00:00 2001 From: hazycora Date: Thu, 21 Dec 2023 11:12:12 -0600 Subject: [PATCH] use REGISTRY_TOKEN secret --- .forgejo/workflows/publish.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.forgejo/workflows/publish.yml b/.forgejo/workflows/publish.yml index 0c617f0..d6f2d20 100644 --- a/.forgejo/workflows/publish.yml +++ b/.forgejo/workflows/publish.yml @@ -6,7 +6,7 @@ on: push: branches: ['release'] -# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds. +# Defines custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds. env: REGISTRY: git.gay IMAGE_NAME: ${{ github.repository }} @@ -15,11 +15,6 @@ env: jobs: build-and-push-image: runs-on: docker - # Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job. - permissions: - contents: read - packages: write - # steps: - name: Checkout repository uses: https://code.forgejo.org/actions/checkout@v4 @@ -29,7 +24,7 @@ jobs: with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + password: ${{ secrets.REGISTRY_TOKEN }} # This step uses [docker/metadata-action](https://github.com/docker/metadata-action#about) to extract tags and labels that will be applied to the specified image. The `id` "meta" allows the output of this step to be referenced in a subsequent step. The `images` value provides the base name for the tags and labels. - name: Extract metadata (tags, labels) for Docker id: meta