1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-21 01:22:08 +02:00

try new action build file #888

This commit is contained in:
Patrik J. Braun 2024-04-15 21:43:19 +02:00
parent 1e4a6d4aef
commit 84822e5fe5

View File

@ -119,29 +119,29 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/download-artifact@v3
uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: pigallery2-release
path: pigallery2-release
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build docker
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: .
file: docker/${{ matrix.container }}/Dockerfile.build
platforms: ${{ matrix.platforms }}
- name: Push experimental
if: ${{ github.ref == 'refs/heads/experimental' }}
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: .
file: docker/${{ matrix.container }}/Dockerfile.build
@ -151,7 +151,7 @@ jobs:
- name: Push edge on new master commit
# github.ref: branches the format is refs/heads/<branch_name> PRs and Tags are different
if: ${{github.ref == 'refs/heads/master' }}
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: .
file: docker/${{ matrix.container }}/Dockerfile.build
@ -160,7 +160,7 @@ jobs:
tags: bpatrik/pigallery2:edge-${{ matrix.container }}
- name: Push release on new Tag
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:
context: .
file: docker/${{ matrix.container }}/Dockerfile.build
@ -172,7 +172,7 @@ jobs:
bpatrik/pigallery2:latest-${{ matrix.container }}
- name: Push latest on new Tag
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:
context: .
file: docker/${{ matrix.container }}/Dockerfile.build