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:
parent
59b114e5a5
commit
ab7a61f46c
16
.github/workflows/build.yml
vendored
16
.github/workflows/build.yml
vendored
@ -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: .
|
||||
|
Loading…
Reference in New Issue
Block a user