pdme/jenkins/ci-agent-pod.yaml
Deepak Mallubhotla 06648c7807
All checks were successful
gitea-physics/pdme/pipeline/head This commit looks good
nix: adds command to nix agent to stop it terminating
2022-09-06 19:03:53 -05:00

28 lines
1.1 KiB
YAML

apiVersion: v1
kind: Pod
spec:
imagePullSecrets:
- name: regcreds
containers: # list of containers that you want present for your build, you can define a default container in the Jenkinsfile
- name: poetry
image: ghcr.io/dmallubhotla/poetry-image:1
command: ["tail", "-f", "/dev/null"] # this or any command that is bascially a noop is required, this is so that you don't overwrite the entrypoint of the base container
imagePullPolicy: Always # use cache or pull image for agent
resources: # limits the resources your build contaienr
requests:
memory: "2Gi"
cpu: "500m"
limits:
memory: "2Gi"
- name: nixbuilder
image: nixos/nix:2.11.0
# command: ["nix", "--version"]
command: ["tail", "-f", "/dev/null"] # this or any command that is bascially a noop is required, this is so that you don't overwrite the entrypoint of the base container
imagePullPolicy: Always # use cache or pull image for agent
resources: # limits the resources your build contaienr
requests:
memory: "2Gi"
cpu: "500m"
limits:
memory: "2Gi"