1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

Update build.yml

This commit is contained in:
Patrik J. Braun 2021-05-09 23:51:22 +02:00 committed by GitHub
parent 59b114e5a5
commit ab7a61f46c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -111,8 +111,16 @@ jobs:
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
-
name: Build and push nightly
if: startsWith(steps.vars.outputs.type , 'head')
name: Test build on Pull request
if: ${{ startsWith(steps.vars.outputs.type , 'head') && github.event.issue.pull_request }}
uses: docker/build-push-action@v2
with:
context: .
file: docker/${{ matrix.container }}/Dockerfile.build
platforms: linux/amd64,linux/arm64,linux/arm/v7
-
name: Build and push nightly on new master commit
if: ${{ startsWith(steps.vars.outputs.type , 'head') && !github.event.issue.pull_request }}
uses: docker/build-push-action@v2
with:
context: .
@ -121,8 +129,8 @@ jobs:
push: true
tags: bpatrik/pigallery2:nightly-${{ matrix.container }}
-
name: Build and push release
if: startsWith(steps.vars.outputs.type , 'tag')
name: Build and push release on new Tag
if: ${{ startsWith(steps.vars.outputs.type , 'tag') && !github.event.issue.pull_request }}
uses: docker/build-push-action@v2
with:
context: .