Fixing registry names

This commit is contained in:
XargonWan 2024-11-05 14:28:26 +09:00
parent 2de929dcd0
commit 859ec28a8a

View file

@ -4,7 +4,7 @@ on:
push: push:
paths: paths:
- "Dockerfile" # Trigger only when the Dockerfile is modified - "Dockerfile" # Trigger only when the Dockerfile is modified
- ".github/workflows/docker.yml" - ".github/workflows/docker.yml" # Also triggers when the workflow itself is updated
env: env:
IMAGE_NAME: ghcr.io/retrodeck-builder:${{ github.sha }} # Image name with SHA tag IMAGE_NAME: ghcr.io/retrodeck-builder:${{ github.sha }} # Image name with SHA tag
@ -32,8 +32,8 @@ jobs:
run: | run: |
docker push $IMAGE_NAME docker push $IMAGE_NAME
- name: Tag as Latest (optional) - name: Tag as Latest
if: github.ref == 'refs/heads/main' # Only tag as 'latest' on the main branch if: github.ref == 'refs/heads/main' # Only tag as 'latest' on the main branch
run: | run: |
docker tag $IMAGE_NAME ghcr.io/retrodeck:latest docker tag $IMAGE_NAME ghcr.io/retrodeck-builder:latest
docker push ghcr.io/retrodeck:latest docker push ghcr.io/retrodeck-builder:latest