ci: update docker image building (#7555)
* add issue bot for prs * Update CHANGELOG.md * Update issue-bot.yml * Update docker-publish.yml
This commit is contained in:
10
.github/workflows/docker-publish.yml
vendored
10
.github/workflows/docker-publish.yml
vendored
@@ -4,10 +4,8 @@ on:
|
|||||||
schedule:
|
schedule:
|
||||||
- cron: '19 17 * * *' # Nightly builds capture upstream updates to dependency images such as node.
|
- cron: '19 17 * * *' # Nightly builds capture upstream updates to dependency images such as node.
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [ master, 'release-*.*.*' ]
|
||||||
tags: [ '*.*.*' ]
|
tags: [ '*.*.*' ]
|
||||||
pull_request:
|
|
||||||
branches: [ master ]
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: docker.io
|
REGISTRY: docker.io
|
||||||
@@ -22,6 +20,10 @@ jobs:
|
|||||||
packages: write
|
packages: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Determine branch name
|
||||||
|
id: branch
|
||||||
|
run: echo ::set-output name=branch_name::${GITHUB_REF#refs/*/}
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
@@ -45,7 +47,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||||
flavor: |
|
flavor: |
|
||||||
latest=true
|
latest=${{ steps.branch.branch_name == 'master' }}
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
|
|||||||
Reference in New Issue
Block a user