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
|
uri: https://code.icb4dc0.de/prskr/pipeline-templates.git
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- name: lint
|
- name: validate
|
||||||
plan:
|
plan:
|
||||||
- get: gapr.git
|
- get: gapr.git
|
||||||
trigger: true
|
trigger: true
|
||||||
|
@ -40,3 +40,25 @@ jobs:
|
||||||
context: concourse-ci/lint/golangci-lint
|
context: concourse-ci/lint/golangci-lint
|
||||||
description: Lint Go files
|
description: Lint Go files
|
||||||
state: failure
|
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:
|
params:
|
||||||
GO111MODULE: "on"
|
GO111MODULE: "on"
|
||||||
CGO_ENABLED: "0"
|
CGO_ENABLED: "0"
|
||||||
|
GOMEMLIMIT: "1150MiB"
|
||||||
GITEA_TOKEN: ((gitea-credentials.token))
|
GITEA_TOKEN: ((gitea-credentials.token))
|
||||||
|
|
||||||
|
container_limits:
|
||||||
|
memory: 1258291200 # 1200MB
|
||||||
|
|
||||||
run:
|
run:
|
||||||
path: bash
|
path: bash
|
||||||
args:
|
args:
|
||||||
|
|
|
@ -14,8 +14,12 @@ inputs:
|
||||||
params:
|
params:
|
||||||
GO111MODULE: "on"
|
GO111MODULE: "on"
|
||||||
CGO_ENABLED: "1"
|
CGO_ENABLED: "1"
|
||||||
|
GOMEMLIMIT: "1150MiB"
|
||||||
GITEA_TOKEN: ((gitea-credentials.token))
|
GITEA_TOKEN: ((gitea-credentials.token))
|
||||||
|
|
||||||
|
container_limits:
|
||||||
|
memory: 1258291200 # 1200MB
|
||||||
|
|
||||||
run:
|
run:
|
||||||
path: bash
|
path: bash
|
||||||
args:
|
args:
|
||||||
|
|
Loading…
Reference in a new issue