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 44 schedule :
55 - cron : ' 19 17 * * *' # Nightly builds capture upstream updates to dependency images such as node.
66 push :
7- branches : [ master ]
7+ branches : [ master, '*.*.*' ]
88 tags : [ '*.*.*' ]
9- pull_request :
10- branches : [ master ]
119
1210env :
1311 REGISTRY : docker.io
2220 packages : write
2321
2422 steps :
23+ - name : Determine branch name
24+ id : branch
25+ run : echo ::set-output name=branch_name::${GITHUB_REF#refs/*/}
26+
2527 - name : Checkout repository
2628 uses : actions/checkout@v2
2729
4547 with :
4648 images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
4749 flavor : |
48- latest=true
50+ latest=${{ steps.branch.branch_name == 'master' }}
4951
5052 - name : Build and push Docker image
5153 uses : docker/build-push-action@v2
You can’t perform that action at this time.
0 commit comments