diff --git a/.gitea/workflows/build-publish.yaml b/.gitea/workflows/build-publish.yaml index 2761ec7..f795824 100644 --- a/.gitea/workflows/build-publish.yaml +++ b/.gitea/workflows/build-publish.yaml @@ -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 }} - - diff --git a/.gitea/workflows/dry-run.yaml b/.gitea/workflows/dry-run.yaml index 2ed5ae5..9cc112a 100644 --- a/.gitea/workflows/dry-run.yaml +++ b/.gitea/workflows/dry-run.yaml @@ -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 }} - - diff --git a/README.md b/README.md index 8e3c22b..67dad16 100644 --- a/README.md +++ b/README.md @@ -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