Skip to content

Commit d613fc0

Browse files
authored
Merge pull request #30 from nanogpt-community/blacksmith-migration-68e256b
2 parents 68e256b + 13325a9 commit d613fc0

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

.github/workflows/docker-publish.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- platform: linux/amd64
2727
runner: ubuntu-latest
2828
- platform: linux/arm64
29-
runner: ubuntu-24.04-arm
29+
runner: blacksmith-4vcpu-ubuntu-2404-arm
3030
permissions:
3131
contents: read
3232
packages: write
@@ -46,8 +46,8 @@ jobs:
4646
with:
4747
cosign-release: 'v2.2.4'
4848

49-
- name: Set up Docker Buildx
50-
uses: docker/setup-buildx-action@v3
49+
- name: Setup Blacksmith Builder
50+
uses: useblacksmith/setup-docker-builder@v1
5151

5252
# Login against a Docker registry except on PR
5353
# https://github.com/docker/login-action
@@ -71,14 +71,12 @@ jobs:
7171
# https://github.com/docker/build-push-action
7272
- name: Build and push Docker image
7373
id: build
74-
uses: docker/build-push-action@v5
74+
uses: useblacksmith/build-push-action@v2
7575
with:
7676
context: .
7777
platforms: ${{ matrix.platform }}
7878
labels: ${{ steps.meta.outputs.labels }}
7979
outputs: type=image,name=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }},push-by-digest=true,name-canonical=true,push=${{ github.event_name != 'pull_request' }}
80-
cache-from: type=gha,scope=build-${{ matrix.platform }}
81-
cache-to: type=gha,mode=max,scope=build-${{ matrix.platform }}
8280

8381
- name: Export digest
8482
if: github.event_name != 'pull_request'
@@ -97,7 +95,7 @@ jobs:
9795
retention-days: 1
9896

9997
merge:
100-
runs-on: ubuntu-latest
98+
runs-on: blacksmith-4vcpu-ubuntu-2404
10199
if: github.event_name != 'pull_request'
102100
needs: build
103101
permissions:
@@ -113,8 +111,8 @@ jobs:
113111
pattern: digests-*
114112
merge-multiple: true
115113

116-
- name: Set up Docker Buildx
117-
uses: docker/setup-buildx-action@v3
114+
- name: Setup Blacksmith Builder
115+
uses: useblacksmith/setup-docker-builder@v1
118116

119117
- name: Log into registry ${{ env.REGISTRY }}
120118
uses: docker/login-action@v3

0 commit comments

Comments
 (0)