Skip to content

Commit

Permalink
Add ARM support for Docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
nikoshet committed Nov 18, 2024
1 parent 4c76f08 commit 20e29cc
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- master
tags:
- 'v*.*.*'
pull_request:

jobs:
docker:
Expand All @@ -16,11 +17,20 @@ jobs:
VERSION: ${{ github.ref_name }}
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Build image
run: docker build -t "$IMAGE_REPOSITORY" .
run: |
docker buildx create \
--name multibuilder \
--platform linux/amd64,linux/arm64 \
--bootstrap --use
docker buildx build \
--platform linux/amd64,linux/arm64 \
-t "$IMAGE_REPOSITORY" .
- name: Build k6 binary
run: |
docker run --rm -u "$(id -u):$(id -g)" -v "$PWD:/xk6" \
Expand Down

0 comments on commit 20e29cc

Please sign in to comment.