Skip to content

Commit ee92cc3

Browse files
committed
chore(ci): disable docker caching
1 parent 6c135a9 commit ee92cc3

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/docker-publish.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,18 @@ on:
44
push:
55
branches:
66
- main
7+
- ci/docker
78
tags:
89
- 'v*'
910
workflow_dispatch:
1011

1112
env:
12-
REGISTRY: docker.io
1313
IMAGE_NAME: textile/recall-synchronizer
1414

1515
jobs:
1616
build-and-push:
1717
runs-on: self-hosted
18+
timeout-minutes: 60
1819
permissions:
1920
contents: read
2021
packages: write
@@ -29,6 +30,10 @@ jobs:
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

0 commit comments

Comments
 (0)