test-env/.gitea/workflows/build-publish.yaml

31 lines
759 B
YAML

name: ci
on:
push:
branches: [ main, techknowlogick-patch-1 ]
jobs:
docker:
strategy:
matrix:
arch: ['arm64', 'amd64']
go-version: ['1.20']
git-version: ['2.38.4']
golangci-lint-version: ['1.51.0']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: setup buildx
uses: https://github.com/docker/setup-buildx-action@v2
- name: build image
uses: https://github.com/docker/build-push-action@v4
with:
push: false
tags: gitea/test_env:${{ matrix.arch }}
build-args: |
GOLANG_VERSION=${{ matrix.go-version }}
GIT_VERSION=${{ matrix.git-version }}
GOLANGCI_LINT_VERSION=${{ matrix.golangci-lint-version }}