Skip to content

Commit

Permalink
improve ci build cache (#646)
Browse files Browse the repository at this point in the history
* enable build caching

* remove docker prune
  • Loading branch information
jakeloo authored Sep 4, 2024
1 parent 6a63a2f commit 8214dc3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,13 @@ jobs:
runs-on: ubuntu-latest-32

steps:
- name: Check Disk Space Before Build
run: df -h

- name: Docker Prune
run: docker system prune -af

- name: Checkout code
uses: actions/checkout@v2
with:
ref: main # checkout the main branch to build nightly

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
uses: docker/login-action@v1
Expand All @@ -43,6 +37,3 @@ jobs:
cache-to: type=gha,mode=max
build-args: |
ENGINE_VERSION=nightly
- name: Check Disk Space After Build
run: df -h
11 changes: 1 addition & 10 deletions .github/workflows/tagBasedImageBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,14 @@ jobs:
LATEST_TAG: ${{ (github.event.release.target_commitish == 'main') && 'thirdweb/engine:latest' || '' }}

steps:
- name: Check Disk Space Before Build
run: df -h

- name: Docker Prune
run: docker system prune -af

- name: Checkout code
uses: actions/checkout@v2
with:
# Fetches the branch at which the release was made
ref: ${{ github.event.release.target_commitish }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3

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

0 comments on commit 8214dc3

Please sign in to comment.