Skip to content

Commit 5c666c0

Browse files
author
allburov
committed
Use buildjet with arm
1 parent 3ccc046 commit 5c666c0

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/build.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,38 @@ jobs:
4141
push: ${{ github.ref_type == 'tag' }}
4242
tags: ${{ steps.meta.outputs.tags }}
4343
labels: ${{ steps.meta.outputs.labels }}
44+
45+
docker-arm:
46+
runs-on: buildjet-4vcpu-ubuntu-2204-arm
47+
48+
steps:
49+
- name: Checkout
50+
uses: actions/checkout@v3
51+
- name: Set up Docker Buildx
52+
uses: docker/setup-buildx-action@v2
53+
54+
- name: Docker meta
55+
id: meta
56+
uses: docker/metadata-action@v4
57+
with:
58+
images: ${{ secrets.DOCKER_IMAGE }}
59+
flavor: latest=false
60+
tags: |
61+
type=raw,value=arm
62+
63+
- name: Login to image repository
64+
if: github.ref_type == 'tag'
65+
uses: docker/login-action@v2
66+
with:
67+
username: ${{ secrets.DOCKER_USER }}
68+
password: ${{ secrets.DOCKER_TOKEN }}
69+
70+
- name: Build and push
71+
uses: docker/build-push-action@v4
72+
with:
73+
context: .
74+
file: Dockerfile
75+
platforms: 'linux/arm64'
76+
push: ${{ github.ref_type == 'tag' }}
77+
tags: ${{ steps.meta.outputs.tags }}
78+
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)