mirror of https://gitea.com/gitea/test-env.git
test push
This commit is contained in:
parent
8d397517c4
commit
1fe1942424
|
@ -11,11 +11,12 @@ jobs:
|
|||
arch: ['ubuntu-latest', 'arm-ubuntu-latest']
|
||||
go-version: ['1.20']
|
||||
git-version: ['2.38.4']
|
||||
golangci-lint-version: ['1.51.0']
|
||||
golangci-lint-version: ['1.51.2']
|
||||
runs-on: ${{ matrix.arch }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- run: |
|
||||
- name: generate docker tag
|
||||
run: |
|
||||
if [ "${{ matrix.arch }}" == "ubuntu-latest" ]; then
|
||||
echo ::set-output name=value::amd64
|
||||
else
|
||||
|
@ -24,14 +25,16 @@ jobs:
|
|||
id: arch
|
||||
- name: setup buildx
|
||||
uses: https://github.com/docker/setup-buildx-action@v2
|
||||
- name: Login to Docker Hub
|
||||
uses: https://github.com/docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
- 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 }}
|
||||
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ jobs:
|
|||
matrix:
|
||||
go-version: ['1.20']
|
||||
git-version: ['2.38.4']
|
||||
golangci-lint-version: ['1.51.0']
|
||||
golangci-lint-version: ['1.51.2']
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
@ -24,5 +24,3 @@ jobs:
|
|||
GOLANG_VERSION=${{ matrix.go-version }}
|
||||
GIT_VERSION=${{ matrix.git-version }}
|
||||
GOLANGCI_LINT_VERSION=${{ matrix.golangci-lint-version }}
|
||||
|
||||
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
|
||||
A docker image for Gitea ci test
|
||||
|
||||
- From golang:1.19
|
||||
- upgrade git to v2.39.1
|
||||
- From golang:1.20
|
||||
- upgrade git to v2.38.4
|
||||
- install git-lfs
|
||||
- install [golangci-lint](https://github.com/golangci/golangci-lint) v1.51.1
|
||||
- install [golangci-lint](https://github.com/golangci/golangci-lint) v1.51.2
|
||||
|
||||
# development environment build
|
||||
|
||||
|
|
Loading…
Reference in New Issue