test push

This commit is contained in:
techknowlogick 2023-03-04 23:17:40 -05:00
parent 8d397517c4
commit 1fe1942424
3 changed files with 12 additions and 11 deletions

View File

@ -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 }}

View File

@ -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 }}

View File

@ -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