Skip to content

ci: update docker image building #7555

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Sep 7, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ on:
schedule:
- cron: '19 17 * * *' # Nightly builds capture upstream updates to dependency images such as node.
push:
branches: [ master ]
branches: [ master, 'release-*.*.*' ]
tags: [ '*.*.*' ]
pull_request:
branches: [ master ]

env:
REGISTRY: docker.io
Expand All @@ -22,6 +20,10 @@ jobs:
packages: write

steps:
- name: Determine branch name
id: branch
run: echo ::set-output name=branch_name::${GITHUB_REF#refs/*/}

- name: Checkout repository
uses: actions/checkout@v2

Expand All @@ -45,7 +47,7 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
flavor: |
latest=true
latest=${{ steps.branch.branch_name == 'master' }}

- name: Build and push Docker image
uses: docker/build-push-action@v2
Expand Down