Skip to content

Commit 79c68fe

Browse files
Tag images
1 parent c89c91d commit 79c68fe

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/buildx-bake.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: buildx
22

33
on:
4-
pull_request:
5-
branches: master
64
push:
75
branches: master
86
tags: '*'
@@ -29,8 +27,13 @@ jobs:
2927
-
3028
name: Generate bake file
3129
run: |
30+
if [ "$GITHUB_REF" != "master" ]
31+
export TAG = $GITHUB_REF
32+
fi
3233
cat <<'EOF' > docker-bake.hcl
33-
variable "TAG" {default="" }
34+
variable "TAG" {
35+
default="latest"
36+
}
3437
3538
group "default" {
3639
targets = [

0 commit comments

Comments
 (0)