mirror of
https://github.com/RetroDECK/retrodeck-builder.git
synced 2024-11-27 16:45:38 +00:00
Fixing registry names
This commit is contained in:
parent
2de929dcd0
commit
859ec28a8a
8
.github/workflows/docker.yml
vendored
8
.github/workflows/docker.yml
vendored
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue