mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-18 02:54:07 +02:00
fix github workflow setting latest tag
This commit is contained in:
6
.github/workflows/build-push-backend.yml
vendored
6
.github/workflows/build-push-backend.yml
vendored
@@ -32,13 +32,9 @@ jobs:
|
||||
with:
|
||||
images: ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}/backend
|
||||
tags: |
|
||||
# set latest tag for default branch
|
||||
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
|
||||
# tag event 'refs/tags/v1.0.0' will generate 'v1.0.0'
|
||||
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'master') }}
|
||||
type=ref,event=tag
|
||||
# branch event 'refs/heads/main' will generate 'main'
|
||||
type=ref,event=branch
|
||||
# sha
|
||||
type=sha
|
||||
|
||||
- name: Build and push Docker image
|
||||
|
||||
2
.github/workflows/build-push-frontend.yml
vendored
2
.github/workflows/build-push-frontend.yml
vendored
@@ -35,7 +35,7 @@ jobs:
|
||||
with:
|
||||
images: ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}/frontend
|
||||
tags: |
|
||||
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
|
||||
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'master') }}
|
||||
type=ref,event=tag
|
||||
type=ref,event=branch
|
||||
type=sha
|
||||
|
||||
Reference in New Issue
Block a user