test-env/.gitea/workflows/dry-run.yaml
Zettat123 7e0fd677a1 Fix build-publish workflow failure (#24)
Related to [this job failure](https://gitea.com/gitea/test-env/actions/runs/28/jobs/2)

See https://gitea.com/gitea/act_runner/issues/119#issuecomment-738294

Reviewed-on: https://gitea.com/gitea/test-env/pulls/24
Reviewed-by: Jason Song <i@wolfogre.com>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Zettat123 <zettat123@gmail.com>
Co-committed-by: Zettat123 <zettat123@gmail.com>
2023-04-28 21:49:08 +08:00

28 lines
754 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
env:
ACTIONS_RUNTIME_TOKEN: ''
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 }}