Skip to content

Commit 1dfcbdd

Browse files
committed
Fixes for docker builds
1 parent 5eb3ce4 commit 1dfcbdd

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/docker-build.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@ jobs:
2222
# steps to perform in job
2323
steps:
2424
- name: Checkout code
25-
uses: actions/checkout@v2
25+
uses: actions/checkout@v4
2626

2727
- name: Set up QEMU
28-
uses: docker/setup-qemu-action@v2
28+
run: sudo apt-get update && sudo apt-get install qemu-user-static -y
2929

3030
# setup Docker buld action
3131
- name: Set up Docker Buildx
3232
id: buildx
33-
uses: docker/setup-buildx-action@v2
33+
uses: docker/setup-buildx-action@v3
3434

3535
- name: Login to DockerHub
36-
uses: docker/login-action@v2
36+
uses: docker/login-action@v3
3737
with:
3838
username: ${{ secrets.DOCKERHUB_USERNAME }}
3939
password: ${{ secrets.DOCKER_PASSWORD }}
@@ -59,7 +59,7 @@ jobs:
5959
id: extract_repository
6060

6161
- name: Build image and push to Docker Hub
62-
uses: docker/build-push-action@v4
62+
uses: docker/build-push-action@v6
6363
with:
6464
# relative path to the place where source code with Dockerfile is located
6565
context: .
@@ -69,8 +69,8 @@ jobs:
6969
platforms: linux/amd64,linux/arm64,linux/arm/v7
7070
tags: ${{ env.IMAGE_REPOSITORY }}/fpp:${{ steps.extract_branch.outputs.branch }},${{ env.IMAGE_REPOSITORY }}/fpp:latest
7171
push: true
72-
cache-from: type=registry,ref=${{ env.IMAGE_REPOSITORY }}/fpp:master
73-
cache-to: type=inline
72+
cache-from: type=gha,scope=fpp-build-docker
73+
cache-to: type=gha,scope=fpp-build-docker,mode=max
7474

7575
- name: Image digest
7676
run: echo ${{ steps.docker_build.outputs.digest }}

0 commit comments

Comments
 (0)