mirror of https://gitea.com/gitea/test-env.git
37 lines
993 B
YAML
37 lines
993 B
YAML
name: ci
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
jobs:
|
|
docker:
|
|
strategy:
|
|
matrix:
|
|
arch: ['ubuntu-latest', 'arm-ubuntu-latest']
|
|
go-version: ['1.20']
|
|
git-version: ['2.38.4']
|
|
golangci-lint-version: ['1.51.0']
|
|
runs-on: arm-ubuntu-latest
|
|
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:linux-${{ matrix.go-version }}-${{ steps.arch.outputs.value }}
|
|
build-args: |
|
|
GOLANG_VERSION=${{ matrix.go-version }}
|
|
GIT_VERSION=${{ matrix.git-version }}
|
|
GOLANGCI_LINT_VERSION=${{ matrix.golangci-lint-version }}
|
|
|
|
|