From bf0eb69f049cd95570de49247bbfbfccd2544806 Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Sat, 4 Mar 2023 22:56:17 -0500 Subject: [PATCH] multi-arch? --- .gitea/workflows/dry-run.yaml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/dry-run.yaml b/.gitea/workflows/dry-run.yaml index 09b24e1..89d9cb3 100644 --- a/.gitea/workflows/dry-run.yaml +++ b/.gitea/workflows/dry-run.yaml @@ -7,20 +7,27 @@ jobs: docker: strategy: matrix: - arch: ['arm64', 'amd64'] + arch: ['ubuntu-latest', 'arm-ubuntu-latest'] go-version: ['1.20'] git-version: ['2.38.4'] golangci-lint-version: ['1.51.0'] - runs-on: ubuntu-latest + runs-on: ${{ matrix.arch }} steps: - uses: actions/checkout@v3 + - run: | + if [ "${{ matrix.arch }}" == "ubuntu-latest" ]; then + echo ::set-output name=value::amd64 + else + echo ::set-output name=value::arm64 + fi + id: arch - name: setup buildx uses: https://github.com/docker/setup-buildx-action@v2 - name: build image uses: https://github.com/docker/build-push-action@v4 with: push: false - tags: gitea/test_env:${{ matrix.arch }} + tags: gitea/test_env:linux-${{ matrix.go-version }}-${{ steps.arch.outputs.value }} build-args: | GOLANG_VERSION=${{ matrix.go-version }} GIT_VERSION=${{ matrix.git-version }}