@@ -22,18 +22,18 @@ jobs:
22
22
# steps to perform in job
23
23
steps :
24
24
- name : Checkout code
25
- uses : actions/checkout@v2
25
+ uses : actions/checkout@v4
26
26
27
27
- 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
29
29
30
30
# setup Docker buld action
31
31
- name : Set up Docker Buildx
32
32
id : buildx
33
- uses : docker/setup-buildx-action@v2
33
+ uses : docker/setup-buildx-action@v3
34
34
35
35
- name : Login to DockerHub
36
- uses : docker/login-action@v2
36
+ uses : docker/login-action@v3
37
37
with :
38
38
username : ${{ secrets.DOCKERHUB_USERNAME }}
39
39
password : ${{ secrets.DOCKER_PASSWORD }}
59
59
id : extract_repository
60
60
61
61
- name : Build image and push to Docker Hub
62
- uses : docker/build-push-action@v4
62
+ uses : docker/build-push-action@v6
63
63
with :
64
64
# relative path to the place where source code with Dockerfile is located
65
65
context : .
69
69
platforms : linux/amd64,linux/arm64,linux/arm/v7
70
70
tags : ${{ env.IMAGE_REPOSITORY }}/fpp:${{ steps.extract_branch.outputs.branch }},${{ env.IMAGE_REPOSITORY }}/fpp:latest
71
71
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
74
74
75
75
- name : Image digest
76
76
run : echo ${{ steps.docker_build.outputs.digest }}
0 commit comments