Skip to content

Commit

Permalink
try new action build file #888
Browse files Browse the repository at this point in the history
  • Loading branch information
bpatrik committed Apr 15, 2024
1 parent 1e4a6d4 commit 84822e5
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 84822e5

Please sign in to comment.