From 905ba9847d919b73cedee4b06872f94fdef50fe2 Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Mon, 7 Feb 2022 16:38:37 +0100 Subject: [PATCH] Update build.yml updating build file --- .github/workflows/build.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7a135281..11068e0c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,8 +6,7 @@ on: - experimental push: branches: - - master - - experimental + - '**' tags: - '*.*' @@ -121,7 +120,7 @@ jobs: username: ${{ secrets.REGISTRY_USERNAME }} password: ${{ secrets.REGISTRY_PASSWORD }} - - name: Test build on Pull request + name: Test build on Pull request and test branches if: ${{ startsWith(steps.vars.outputs.type , 'head') && ((github.event.issue.pull_request && github.ref == 'refs/heads/master') || github.ref != 'refs/heads/master') }} uses: docker/build-push-action@v2 with: @@ -159,5 +158,5 @@ jobs: push: true tags: | bpatrik/pigallery2:nightly-${{ matrix.container }} - bpatrik/pigallery2:${{ steps.vars.outputs.tag }}-${{ matrix.container == 'debian-buster' && '' || matrix.container }} - bpatrik/pigallery2:latest-${{ matrix.container == 'debian-buster' && '' || matrix.container }} + bpatrik/pigallery2:${{ steps.vars.outputs.tag }}-${{ matrix.container == 'debian-buster' && '' || join(['-',matrix.container],'') }} + bpatrik/pigallery2:latest${{ matrix.container == 'debian-buster' && '' || join(['-',matrix.container],'') }}