chore(ci): set memory limits for CI jobs
This commit is contained in:
parent
ec31dd14d4
commit
e643e7424b
3 changed files with 31 additions and 1 deletions
|
@ -14,7 +14,7 @@ resources:
|
|||
uri: https://code.icb4dc0.de/prskr/pipeline-templates.git
|
||||
|
||||
jobs:
|
||||
- name: lint
|
||||
- name: validate
|
||||
plan:
|
||||
- get: gapr.git
|
||||
trigger: true
|
||||
|
@ -40,3 +40,25 @@ jobs:
|
|||
context: concourse-ci/lint/golangci-lint
|
||||
description: Lint Go files
|
||||
state: failure
|
||||
- task: test
|
||||
file: gapr.git/.concourse/tasks/test.yml
|
||||
privileged: true
|
||||
input_mapping: {repo: gapr.git}
|
||||
on_success:
|
||||
task: report-success
|
||||
file: templates.git/tasks/gitea-status.yml
|
||||
input_mapping: {repo: gapr.git}
|
||||
vars:
|
||||
project_path: prskr/gapr
|
||||
context: concourse-ci/test/gotestsum
|
||||
description: Run unit tests
|
||||
state: success
|
||||
on_failure:
|
||||
task: report-failure
|
||||
file: templates.git/tasks/gitea-status.yml
|
||||
input_mapping: {repo: gapr.git}
|
||||
vars:
|
||||
project_path: prskr/gapr
|
||||
context: concourse-ci/test/gotestsum
|
||||
description: Run unit tests
|
||||
state: failure
|
||||
|
|
|
@ -14,8 +14,12 @@ inputs:
|
|||
params:
|
||||
GO111MODULE: "on"
|
||||
CGO_ENABLED: "0"
|
||||
GOMEMLIMIT: "1150MiB"
|
||||
GITEA_TOKEN: ((gitea-credentials.token))
|
||||
|
||||
container_limits:
|
||||
memory: 1258291200 # 1200MB
|
||||
|
||||
run:
|
||||
path: bash
|
||||
args:
|
||||
|
|
|
@ -14,8 +14,12 @@ inputs:
|
|||
params:
|
||||
GO111MODULE: "on"
|
||||
CGO_ENABLED: "1"
|
||||
GOMEMLIMIT: "1150MiB"
|
||||
GITEA_TOKEN: ((gitea-credentials.token))
|
||||
|
||||
container_limits:
|
||||
memory: 1258291200 # 1200MB
|
||||
|
||||
run:
|
||||
path: bash
|
||||
args:
|
||||
|
|
Loading…
Reference in a new issue