pdme/jenkins/nix-agent.yaml
Deepak Mallubhotla 96d5e5a560
Some checks failed
gitea-physics/pdme/pipeline/head There was a failure building this commit
nix: tries to specify agent at each step
2022-09-06 18:32:34 -05:00

16 lines
659 B
YAML

apiVersion: v1
kind: Pod
spec:
containers: # list of containers that you want present for your build, you can define a default container in the Jenkinsfile
- 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"