mirror of
https://gitea.com/gitea/test-env.git
synced 2024-06-04 02:51:24 +05:30
ce003171ea
This should also fix the CI issue in gitea main repo. Co-authored-by: harryzcy <harry@harryzheng.com> Reviewed-on: https://gitea.com/gitea/test-env/pulls/21 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Reviewed-by: John Olheiser <john+gitea@jolheiser.com> Co-authored-by: harryzcy <harryzcy@noreply.gitea.io> Co-committed-by: harryzcy <harryzcy@noreply.gitea.io>
26 lines
709 B
YAML
26 lines
709 B
YAML
name: ci
|
|
|
|
on: [pull_request]
|
|
|
|
jobs:
|
|
docker:
|
|
strategy:
|
|
matrix:
|
|
go-version: ['1.19','1.20']
|
|
git-version: ['2.40.0']
|
|
golangci-lint-version: ['1.52.2']
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- 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 }}-amd64
|
|
build-args: |
|
|
GOLANG_VERSION=${{ matrix.go-version }}
|
|
GIT_VERSION=${{ matrix.git-version }}
|
|
GOLANGCI_LINT_VERSION=${{ matrix.golangci-lint-version }}
|