2023-01-30 21:06:18 +00:00
|
|
|
---
|
|
|
|
platform: linux
|
|
|
|
|
|
|
|
image_resource:
|
|
|
|
type: registry-image
|
|
|
|
source:
|
|
|
|
repository: docker.io/golangci/golangci-lint
|
|
|
|
tag: latest
|
|
|
|
|
|
|
|
inputs:
|
|
|
|
- name: repo
|
|
|
|
path: .
|
|
|
|
|
|
|
|
params:
|
|
|
|
GO111MODULE: "on"
|
|
|
|
CGO_ENABLED: "0"
|
2023-01-31 20:18:59 +00:00
|
|
|
GOMEMLIMIT: "1150MiB"
|
2023-01-30 21:06:18 +00:00
|
|
|
GITEA_TOKEN: ((gitea-credentials.token))
|
|
|
|
|
2023-01-31 20:18:59 +00:00
|
|
|
container_limits:
|
|
|
|
memory: 1258291200 # 1200MB
|
|
|
|
|
2023-01-30 21:06:18 +00:00
|
|
|
run:
|
|
|
|
path: bash
|
|
|
|
args:
|
|
|
|
- -ce
|
|
|
|
- |
|
|
|
|
golangci-lint run -v
|