Skip to content

Commit 7e51f54

Browse files
committed
Trying ref for tag builds
1 parent 5958172 commit 7e51f54

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
with:
2929
images: cyberpearuk/nginx-proxy
3030
tags: |
31-
type=raw,event=tag,value=${{ env.TAG }}
31+
type=ref,event=tag
3232
type=raw,event=branch,value=latest,enable={{is_default_branch}}
3333
- name: Build and push main image
3434
uses: docker/build-push-action@v2
@@ -45,8 +45,8 @@ jobs:
4545
uses: docker/metadata-action@e1a45f6e54773201956dae54cd74ee7fdcafe877
4646
with:
4747
images: cyberpearuk/nginx
48-
tags:
49-
type=raw,event=tag,value=${{ env.TAG }}
48+
tags: |
49+
type=ref,event=tag
5050
type=raw,event=branch,value=latest,enable={{is_default_branch}}
5151
- name: Build and push nginx only image
5252
uses: docker/build-push-action@v2

0 commit comments

Comments
 (0)