Skip to content

Commit 83594d8

Browse files
committed
Fixed CI script for PRs
1 parent 4bdb6ed commit 83594d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build-frontend.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ jobs:
2626
id: meta
2727
uses: docker/metadata-action@v5
2828
with:
29-
# list of Docker images to use as base name for tags
30-
images: ${{ vars.DOCKER_REGISTRY_URL }}/smo-frontend
29+
# Dynamic image name: if DOCKER_REGISTRY_URL is set use <registry>/smo-frontend, otherwise just 'smo-frontend'
30+
images: ${{ vars.DOCKER_REGISTRY_URL && format('{0}/smo-frontend', vars.DOCKER_REGISTRY_URL) || 'smo-frontend' }}
3131
# generate Docker tags based on the following events/attributes
3232
tags: |
3333
type=ref,event=branch

0 commit comments

Comments
 (0)