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']
|
arch: ['ubuntu-latest', 'arm-ubuntu-latest']
|
||||||
go-version: ['1.20']
|
go-version: ['1.20']
|
||||||
git-version: ['2.38.4']
|
git-version: ['2.38.4']
|
||||||
golangci-lint-version: ['1.51.0']
|
golangci-lint-version: ['1.51.2']
|
||||||
runs-on: ${{ matrix.arch }}
|
runs-on: ${{ matrix.arch }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- run: |
|
- name: generate docker tag
|
||||||
|
run: |
|
||||||
if [ "${{ matrix.arch }}" == "ubuntu-latest" ]; then
|
if [ "${{ matrix.arch }}" == "ubuntu-latest" ]; then
|
||||||
echo ::set-output name=value::amd64
|
echo ::set-output name=value::amd64
|
||||||
else
|
else
|
||||||
|
@ -24,14 +25,16 @@ jobs:
|
||||||
id: arch
|
id: arch
|
||||||
- name: setup buildx
|
- name: setup buildx
|
||||||
uses: https://github.com/docker/setup-buildx-action@v2
|
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
|
- name: build image
|
||||||
uses: https://github.com/docker/build-push-action@v4
|
uses: https://github.com/docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
push: false
|
|
||||||
tags: gitea/test_env:linux-${{ matrix.go-version }}-${{ steps.arch.outputs.value }}
|
tags: gitea/test_env:linux-${{ matrix.go-version }}-${{ steps.arch.outputs.value }}
|
||||||
build-args: |
|
build-args: |
|
||||||
GOLANG_VERSION=${{ matrix.go-version }}
|
GOLANG_VERSION=${{ matrix.go-version }}
|
||||||
GIT_VERSION=${{ matrix.git-version }}
|
GIT_VERSION=${{ matrix.git-version }}
|
||||||
GOLANGCI_LINT_VERSION=${{ matrix.golangci-lint-version }}
|
GOLANGCI_LINT_VERSION=${{ matrix.golangci-lint-version }}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
go-version: ['1.20']
|
go-version: ['1.20']
|
||||||
git-version: ['2.38.4']
|
git-version: ['2.38.4']
|
||||||
golangci-lint-version: ['1.51.0']
|
golangci-lint-version: ['1.51.2']
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
@ -24,5 +24,3 @@ jobs:
|
||||||
GOLANG_VERSION=${{ matrix.go-version }}
|
GOLANG_VERSION=${{ matrix.go-version }}
|
||||||
GIT_VERSION=${{ matrix.git-version }}
|
GIT_VERSION=${{ matrix.git-version }}
|
||||||
GOLANGCI_LINT_VERSION=${{ matrix.golangci-lint-version }}
|
GOLANGCI_LINT_VERSION=${{ matrix.golangci-lint-version }}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
|
|
||||||
A docker image for Gitea ci test
|
A docker image for Gitea ci test
|
||||||
|
|
||||||
- From golang:1.19
|
- From golang:1.20
|
||||||
- upgrade git to v2.39.1
|
- upgrade git to v2.38.4
|
||||||
- install git-lfs
|
- 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
|
# development environment build
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue