File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 4
4
schedule :
5
5
- cron : ' 19 17 * * *' # Nightly builds capture upstream updates to dependency images such as node.
6
6
push :
7
- branches : [ master ]
7
+ branches : [ master, 'release-*.*.*' ]
8
8
tags : [ '*.*.*' ]
9
- pull_request :
10
- branches : [ master ]
11
9
12
10
env :
13
11
REGISTRY : docker.io
22
20
packages : write
23
21
24
22
steps :
23
+ - name : Determine branch name
24
+ id : branch
25
+ run : echo ::set-output name=branch_name::${GITHUB_REF#refs/*/}
26
+
25
27
- name : Checkout repository
26
28
uses : actions/checkout@v2
27
29
45
47
with :
46
48
images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
47
49
flavor : |
48
- latest=true
50
+ latest=${{ steps.branch.branch_name == 'master' }}
49
51
50
52
- name : Build and push Docker image
51
53
uses : docker/build-push-action@v2
You can’t perform that action at this time.
0 commit comments