3939 env :
4040 GITHUB_TOKEN : ${{ secrets.GH_PERSONAL_TOKEN }}
4141 - name : Set up Docker Buildx
42- uses : docker /setup-buildx-action@v3
42+ uses : useblacksmith /setup-docker-builder@v1
4343 - name : Log in to Docker Hub
4444 uses : docker/login-action@v3
4545 with :
5757 # set latest tag for default branch
5858 type=raw,value=latest,enable={{is_default_branch}}
5959 - name : Build image
60- uses : docker /build-push-action@v6
60+ uses : useblacksmith /build-push-action@v2
6161 env :
6262 DOCKER_BUILD_NO_SUMMARY : true
6363 with :
@@ -66,23 +66,19 @@ jobs:
6666 tags : ${{ steps.meta.outputs.tags }}
6767 labels : ${{ steps.meta.outputs.labels }}
6868 push : false
69- cache-from : type=local,src=docker-cache
70- cache-to : type=local,dest=docker-cache,mode=max
7169 - name : Test image
7270 env :
7371 DOCKER_TAG : ${{ steps.meta.outputs.tags }}
7472 run : (echo '{}' | docker run --rm -i $(echo "$DOCKER_TAG" | head -1) > /dev/null) && echo "OK"
7573 - name : Build and push image
76- uses : docker /build-push-action@v6
74+ uses : useblacksmith /build-push-action@v2
7775 id : push
7876 with :
7977 context : ./target/docker/stage
8078 sbom : true
8179 push : true
8280 tags : ${{ steps.meta.outputs.tags }}
8381 labels : ${{ steps.meta.outputs.labels }}
84- cache-from : type=local,src=docker-cache
85- cache-to : type=local,dest=docker-cache,mode=max
8682 - name : Attest
8783 uses : actions/attest-build-provenance@v3
8884 id : attest
0 commit comments