f82a9900a9
Give the build/lint/test CI steps the same serviceAccount + resource requests/limits as the pre-commit and release steps, so every step on the k8s woodpecker backend is scheduled with bounded resources.
34 lines
619 B
YAML
34 lines
619 B
YAML
when:
|
|
- event: pull_request
|
|
|
|
steps:
|
|
- name: lint
|
|
image: golang:1.25
|
|
commands:
|
|
- make lint
|
|
backend_options:
|
|
kubernetes:
|
|
serviceAccountName: default
|
|
resources:
|
|
requests:
|
|
memory: 512Mi
|
|
cpu: 1
|
|
limits:
|
|
memory: 2Gi
|
|
cpu: 2
|
|
|
|
- name: test
|
|
image: golang:1.25
|
|
commands:
|
|
- make test
|
|
backend_options:
|
|
kubernetes:
|
|
serviceAccountName: default
|
|
resources:
|
|
requests:
|
|
memory: 512Mi
|
|
cpu: 1
|
|
limits:
|
|
memory: 2Gi
|
|
cpu: 2
|