Add arm/arm64 images

This commit is contained in:
Daniel Carrillo 2023-12-24 12:31:58 +01:00
parent 0090b794ee
commit 7d59c5f2f6
Signed by: dcarrillo
GPG Key ID: E4CD5C09DAED6E16
1 changed files with 22 additions and 9 deletions

View File

@ -13,17 +13,27 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
make: ["lint", "test"]
arch:
- arm64
- arm
- amd64
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: ${{ matrix.arch }}
- name: install go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: ${{ matrix.make }}
run: make ${{ matrix.make }}
- name: Run tests
run: |
uname -a
make test
deploy:
runs-on: ubuntu-latest
@ -31,16 +41,19 @@ jobs:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
strategy:
matrix:
goosarch: [linux-amd64]
goosarch:
- linux/amd64
- linux/arm/v7
- linux/arm64
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: install go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV