@@ -37,18 +37,21 @@ jobs:
|
|||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
# Log into the Gitea Container Registry except on PR. The automatic
|
# Log into the Gitea Container Registry except on PR.
|
||||||
# Actions token can push packages owned by the same user/org. If package
|
#
|
||||||
# publishing is restricted on your instance, create a personal access
|
# NOTE: Gitea's automatic Actions token (secrets.GITHUB_TOKEN) is NOT
|
||||||
# token with the "write:package" scope and store it as the PACKAGES_TOKEN
|
# granted package scope, so it cannot push to the container registry.
|
||||||
# secret, then swap the password below to ${{ secrets.PACKAGES_TOKEN }}.
|
# Create a Gitea personal access token with the "write:package" scope
|
||||||
|
# (Settings -> Applications -> Access Tokens) and add it as a repo/org
|
||||||
|
# Actions secret named PACKAGES_TOKEN. Set PACKAGES_USER to the token
|
||||||
|
# owner's username (defaults to the triggering actor).
|
||||||
- name: Log into registry ${{ env.REGISTRY }}
|
- name: Log into registry ${{ env.REGISTRY }}
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ env.REGISTRY }}
|
registry: ${{ env.REGISTRY }}
|
||||||
username: ${{ github.actor }}
|
username: ${{ vars.PACKAGES_USER || github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.PACKAGES_TOKEN }}
|
||||||
|
|
||||||
# Extract metadata (tags, labels) for Docker.
|
# Extract metadata (tags, labels) for Docker.
|
||||||
- name: Extract Docker metadata
|
- name: Extract Docker metadata
|
||||||
|
|||||||
Reference in New Issue
Block a user