use REGISTRY_TOKEN secret

This commit is contained in:
hazycora 2023-12-21 11:12:12 -06:00
parent 990a0f6e8a
commit fe257ddb05
No known key found for this signature in database
GPG key ID: 215AF1F81F86940E

View file

@ -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