File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - main
7+ - ci/docker
78 tags :
89 - ' v*'
910 workflow_dispatch :
1011
1112env :
12- REGISTRY : docker.io
1313 IMAGE_NAME : textile/recall-synchronizer
1414
1515jobs :
1616 build-and-push :
1717 runs-on : self-hosted
18+ timeout-minutes : 60
1819 permissions :
1920 contents : read
2021 packages : write
2930 - name : Set up Docker Buildx
3031 uses : docker/setup-buildx-action@v3
3132
33+ - name : Create fresh builder
34+ run : |
35+ docker buildx create --name builder-${{ github.run_id }} --driver docker-container --bootstrap --use
36+
3237 - name : Log in to Docker Hub
3338 if : github.event_name != 'pull_request'
3439 uses : docker/login-action@v3
@@ -51,14 +56,22 @@ jobs:
5156 type=raw,value=latest,enable={{is_default_branch}}
5257
5358 - name : Build and push Docker image
59+ id : docker_build
5460 uses : docker/build-push-action@v5
5561 with :
5662 context : .
5763 platforms : linux/amd64,linux/arm64
5864 push : ${{ github.event_name != 'pull_request' }}
5965 tags : ${{ steps.meta.outputs.tags }}
6066 labels : ${{ steps.meta.outputs.labels }}
67+ no-cache : true
68+ provenance : false
6169
6270 - name : Image digest
6371 if : github.event_name != 'pull_request'
6472 run : echo ${{ steps.docker_build.outputs.digest }}
73+
74+ - name : Clean up builder
75+ if : always()
76+ run : |
77+ docker buildx rm builder-${{ github.run_id }} || true
You can’t perform that action at this time.
0 commit comments