Skip to content

Commit 2494e64

Browse files
authored
build: build on git tag (#218)
1 parent b2685c5 commit 2494e64

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/build.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
branches:
66
- master
7+
- test/**
8+
tags:
9+
- "[0-9]+.[0-9]+.[0-9]+"
710
paths-ignore:
811
- "*.md"
912

@@ -56,7 +59,9 @@ jobs:
5659
type=ref,event=tag
5760
# latest repo tag gets a moving 'stable' image tag applied to the main variant
5861
type=raw,value=stable,enable=${{ github.ref_type == 'tag' }}
59-
type=raw,value=latest,enable={{is_default_branch}}
62+
type=raw,value=latest,enable=${{ github.ref_name == github.event.repository.default_branch }}
63+
# allow for test branch image tags
64+
type=ref,event=branch,enable=${{ github.ref_name != github.event.repository.default_branch }}
6065
6166
- name: Build and push
6267
uses: docker/[email protected]

0 commit comments

Comments
 (0)