Skip to content

Commit 8214dc3

Browse files
authored
improve ci build cache (#646)
* enable build caching * remove docker prune
1 parent 6a63a2f commit 8214dc3

File tree

2 files changed

+2
-20
lines changed

2 files changed

+2
-20
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,13 @@ jobs:
1111
runs-on: ubuntu-latest-32
1212

1313
steps:
14-
- name: Check Disk Space Before Build
15-
run: df -h
16-
17-
- name: Docker Prune
18-
run: docker system prune -af
19-
2014
- name: Checkout code
2115
uses: actions/checkout@v2
2216
with:
2317
ref: main # checkout the main branch to build nightly
2418

2519
- name: Set up Docker Buildx
26-
uses: docker/setup-buildx-action@v1
20+
uses: docker/setup-buildx-action@v3
2721

2822
- name: Login to DockerHub
2923
uses: docker/login-action@v1
@@ -43,6 +37,3 @@ jobs:
4337
cache-to: type=gha,mode=max
4438
build-args: |
4539
ENGINE_VERSION=nightly
46-
47-
- name: Check Disk Space After Build
48-
run: df -h

.github/workflows/tagBasedImageBuild.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,14 @@ jobs:
1212
LATEST_TAG: ${{ (github.event.release.target_commitish == 'main') && 'thirdweb/engine:latest' || '' }}
1313

1414
steps:
15-
- name: Check Disk Space Before Build
16-
run: df -h
17-
18-
- name: Docker Prune
19-
run: docker system prune -af
20-
2115
- name: Checkout code
2216
uses: actions/checkout@v2
2317
with:
2418
# Fetches the branch at which the release was made
2519
ref: ${{ github.event.release.target_commitish }}
2620

2721
- name: Set up Docker Buildx
28-
uses: docker/setup-buildx-action@v1
22+
uses: docker/setup-buildx-action@v3
2923

3024
- name: Login to DockerHub
3125
uses: docker/login-action@v1
@@ -47,6 +41,3 @@ jobs:
4741
${{ env.LATEST_TAG }}
4842
build-args: |
4943
ENGINE_VERSION=${{ github.event.release.tag_name }}
50-
51-
- name: Check Disk Space After Build
52-
run: df -h

0 commit comments

Comments
 (0)