Bump golangci-lint and git version #21

Merged
jolheiser merged 2 commits from harryzcy/test-env:bump-deps into main 2023-04-06 12:36:16 +00:00
4 changed files with 9 additions and 9 deletions

View File

@ -10,8 +10,8 @@ jobs:
matrix:
arch: ['ubuntu-latest', 'arm-ubuntu-latest']
go-version: ['1.19','1.20']
git-version: ['2.38.4']
golangci-lint-version: ['1.51.2']
git-version: ['2.40.0']
golangci-lint-version: ['1.52.2']
runs-on: ${{ matrix.arch }}
steps:
- uses: actions/checkout@v3

View File

@ -7,8 +7,8 @@ jobs:
strategy:
matrix:
go-version: ['1.19','1.20']
git-version: ['2.38.4']
golangci-lint-version: ['1.51.2']
git-version: ['2.40.0']
golangci-lint-version: ['1.52.2']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

View File

@ -1,8 +1,8 @@
ARG GOLANG_VERSION=1.20
FROM golang:${GOLANG_VERSION}-bullseye
ARG GIT_VERSION=2.38.4
ARG GOLANGCI_LINT_VERSION=1.51.0
ARG GIT_VERSION=2.40.0
ARG GOLANGCI_LINT_VERSION=1.52.2
ARG GITEA_ID=1000
ARG GITEA_GID=1000

View File

@ -3,11 +3,11 @@
A docker image for Gitea ci test
- From golang:1.20
- upgrade git to v2.38.4
- upgrade git to v2.40.0
Review

Git is specifically kept at 2.38.4 as that is the version that alpine distributes

Git is specifically kept at 2.38.4 as that is the version that alpine distributes
- install git-lfs
- install [golangci-lint](https://github.com/golangci/golangci-lint) v1.51.2
- install [golangci-lint](https://github.com/golangci/golangci-lint) v1.52.2
# development environment build
## development environment build
In order to run from within a development environment at the root of the gitea repository with a command such as `docker run --volume $(pwd):/drone/src --workdir /drone/src --user gitea mytestenv ...` the id of the gitea user must match the id of the development environment.