Skip to content

Commit

Permalink
Merge pull request #67 from phpdocker-io/update-actions
Browse files Browse the repository at this point in the history
Update github actions to the newest versions
  • Loading branch information
luispabon authored Nov 24, 2023
2 parents c7331ce + 5232360 commit 21a4088
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/docker-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,28 +72,28 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Debug
run: |
echo "is_master: -> ${{ github.ref == 'refs/heads/master' }} <-"
echo "ref: ${{ github.head_ref }}"
- name: Set up QEMU (required for arm build)
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
if: ${{ github.ref == 'refs/heads/master' }}
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Primary container
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: ${{ matrix.folder }}
platforms: ${{ join(matrix.arch, ',') }}
Expand All @@ -104,7 +104,7 @@ jobs:

- name: Secondary container
if: matrix.targets.secondary
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: ${{ matrix.folder }}
platforms: ${{ join(matrix.arch, ',') }}
Expand All @@ -115,7 +115,7 @@ jobs:

- name: Tertiary container
if: matrix.targets.tertiary
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: ${{ matrix.folder }}
platforms: ${{ join(matrix.arch, ',') }}
Expand Down

0 comments on commit 21a4088

Please sign in to comment.