From 41f0a1de43de046bb013eeaf93c8f6bebd049d1c Mon Sep 17 00:00:00 2001 From: Manuel <5673677+mtrezza@users.noreply.github.com> Date: Tue, 7 Sep 2021 16:42:28 +0200 Subject: [PATCH] ci: update docker image building (#7555) * add issue bot for prs * Update CHANGELOG.md * Update issue-bot.yml * Update docker-publish.yml --- .github/workflows/docker-publish.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 84c64152..05c7c416 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -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 @@ -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 @@ -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