mirror of
https://github.com/bpatrik/pigallery2.git
synced 2025-01-08 04:03:48 +02:00
try new action build file #888
This commit is contained in:
parent
1e4a6d4aef
commit
84822e5fe5
20
.github/workflows/build.yml
vendored
20
.github/workflows/build.yml
vendored
@ -119,29 +119,29 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: pigallery2-release
|
name: pigallery2-release
|
||||||
path: pigallery2-release
|
path: pigallery2-release
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v2
|
uses: docker/setup-qemu-action@v3
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v3
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||||
- name: Build docker
|
- name: Build docker
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: docker/${{ matrix.container }}/Dockerfile.build
|
file: docker/${{ matrix.container }}/Dockerfile.build
|
||||||
platforms: ${{ matrix.platforms }}
|
platforms: ${{ matrix.platforms }}
|
||||||
- name: Push experimental
|
- name: Push experimental
|
||||||
if: ${{ github.ref == 'refs/heads/experimental' }}
|
if: ${{ github.ref == 'refs/heads/experimental' }}
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: docker/${{ matrix.container }}/Dockerfile.build
|
file: docker/${{ matrix.container }}/Dockerfile.build
|
||||||
@ -151,7 +151,7 @@ jobs:
|
|||||||
- name: Push edge on new master commit
|
- name: Push edge on new master commit
|
||||||
# github.ref: branches the format is refs/heads/<branch_name> PRs and Tags are different
|
# github.ref: branches the format is refs/heads/<branch_name> PRs and Tags are different
|
||||||
if: ${{github.ref == 'refs/heads/master' }}
|
if: ${{github.ref == 'refs/heads/master' }}
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: docker/${{ matrix.container }}/Dockerfile.build
|
file: docker/${{ matrix.container }}/Dockerfile.build
|
||||||
@ -160,7 +160,7 @@ jobs:
|
|||||||
tags: bpatrik/pigallery2:edge-${{ matrix.container }}
|
tags: bpatrik/pigallery2:edge-${{ matrix.container }}
|
||||||
- name: Push release on new Tag
|
- name: Push release on new Tag
|
||||||
if: ${{ startsWith(github.ref_type , 'tag') && !github.event.issue.pull_request && matrix.container != 'debian-bullseye'}}
|
if: ${{ startsWith(github.ref_type , 'tag') && !github.event.issue.pull_request && matrix.container != 'debian-bullseye'}}
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: docker/${{ matrix.container }}/Dockerfile.build
|
file: docker/${{ matrix.container }}/Dockerfile.build
|
||||||
@ -172,7 +172,7 @@ jobs:
|
|||||||
bpatrik/pigallery2:latest-${{ matrix.container }}
|
bpatrik/pigallery2:latest-${{ matrix.container }}
|
||||||
- name: Push latest on new Tag
|
- name: Push latest on new Tag
|
||||||
if: ${{ startsWith(github.ref_type, 'tag') && !github.event.issue.pull_request && matrix.container == 'debian-bullseye'}}
|
if: ${{ startsWith(github.ref_type, 'tag') && !github.event.issue.pull_request && matrix.container == 'debian-bullseye'}}
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: docker/${{ matrix.container }}/Dockerfile.build
|
file: docker/${{ matrix.container }}/Dockerfile.build
|
||||||
|
Loading…
Reference in New Issue
Block a user