fix: docker action registry login and metadata

This commit is contained in:
xynydev 2024-04-24 21:34:30 +03:00
parent 7066892ded
commit e0a42222d5
1 changed files with 3 additions and 4 deletions

View File

@ -7,7 +7,6 @@ on:
pull_request:
env:
REGISTRY: ghcr.io
IMAGE_NAME: fooocus
jobs:
@ -25,15 +24,15 @@ jobs:
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
images: ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=branch
type=ref,event=pr