mirror of
https://github.com/bloomberg/goldpinger.git
synced 2026-05-25 10:02:45 +00:00
Also do multi-arch builds on CI
Signed-off-by: Mikolaj Pawlikowski <mikolaj@pawlikowski.pl>
This commit is contained in:
committed by
GitHub
parent
30f4d378f5
commit
f89a07a420
29
.github/workflows/main.yml
vendored
29
.github/workflows/main.yml
vendored
@@ -15,6 +15,8 @@ jobs:
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.16
|
||||
|
||||
# basics
|
||||
- name: Compile the binary
|
||||
run: |
|
||||
make bin/goldpinger
|
||||
@@ -22,3 +24,30 @@ jobs:
|
||||
- name: Build the Docker image
|
||||
run: |
|
||||
make build
|
||||
|
||||
# multi-arch build
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
|
||||
- name: Build and
|
||||
id: docker_build
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
build-args: GO_MOD_ACTION=download
|
||||
platforms: linux/amd64,linux/arm64
|
||||
target: simple
|
||||
- name: Build and push vendor
|
||||
id: docker_build_vendor
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: .
|
||||
flavor: |
|
||||
suffix: -vendor,onlatest=false
|
||||
file: ./Dockerfile
|
||||
build-args: GO_MOD_ACTION=vendor
|
||||
platforms: linux/amd64,linux/arm64
|
||||
target: vendor
|
||||
|
||||
Reference in New Issue
Block a user