Skip to content

Commit

Permalink
Merge pull request #33 from kmahyyg/migrate-gh-runner-to-buildjet
Browse files Browse the repository at this point in the history
Migrate gh actions runner to buildjet
  • Loading branch information
kmahyyg authored Jan 27, 2024
2 parents 869babd + 1241053 commit 9dd1fa0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/docker4commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ env:

jobs:
build-amd64-docker:
runs-on: ubuntu-22.04
runs-on: buildjet-4vcpu-ubuntu-2204
env:
platform-name: "linux/amd64"
platform-tag: "x86_64"
Expand All @@ -37,7 +37,7 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Cache Docker layers
uses: actions/cache@v4
uses: buildjet/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
Expand Down Expand Up @@ -91,7 +91,7 @@ jobs:
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
build-arm64-docker:
runs-on: ubuntu-22.04
runs-on: buildjet-4vcpu-ubuntu-2204-arm
env:
platform-name: "linux/arm64/v8"
platform-tag: "aarch64"
Expand All @@ -109,7 +109,7 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Cache Docker layers
uses: actions/cache@v4
uses: buildjet/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
Expand Down Expand Up @@ -167,7 +167,7 @@ jobs:
- build-amd64-docker
- build-arm64-docker
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
runs-on: ubuntu-22.04
runs-on: buildjet-4vcpu-ubuntu-2204
steps:
# note: change the repository_owner to specific one if post to other repos
- name: Prepare for release
Expand Down

0 comments on commit 9dd1fa0

Please sign in to comment.