Skip to content

Commit a26006e

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 81165cc + 41f0a1d commit a26006e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/docker-publish.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@ on:
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, 'release-*.*.*' ]
88
tags: [ '*.*.*' ]
9-
pull_request:
10-
branches: [ master ]
119

1210
env:
1311
REGISTRY: docker.io
@@ -22,6 +20,10 @@ jobs:
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

@@ -45,7 +47,7 @@ jobs:
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

0 commit comments

Comments
 (0)