49 lines
1.2 KiB
YAML
49 lines
1.2 KiB
YAML
|
apiVersion: batch/v1
|
||
|
kind: Job
|
||
|
metadata:
|
||
|
name: ${NAMEPREFIX}-${RUNID}
|
||
|
namespace: ${NAMESPACE}
|
||
|
labels:
|
||
|
name: ${NAMEPREFIX}-${RUNID}
|
||
|
run-id: ${RUNID}
|
||
|
spec:
|
||
|
backoffLimit: 0
|
||
|
template:
|
||
|
metadata:
|
||
|
name: ${NAMEPREFIX}
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: ${NAMEPREFIX}-runner
|
||
|
image: codexstorage/cs-codex-dist-tests:sha-300b91e
|
||
|
env:
|
||
|
- name: RUNNERLOCATION
|
||
|
value: InternalToCluster
|
||
|
- name: KUBECONFIG
|
||
|
value: /opt/kubeconfig.yaml
|
||
|
- name: LOGPATH
|
||
|
value: /var/log/cs-codex-dist-tests
|
||
|
- name: NAMESPACE
|
||
|
value: ${NAMESPACE}
|
||
|
- name: BRANCH
|
||
|
value: ${BRANCH}
|
||
|
- name: SOURCE
|
||
|
value: ${SOURCE}
|
||
|
volumeMounts:
|
||
|
- name: kubeconfig
|
||
|
mountPath: /opt/kubeconfig.yaml
|
||
|
subPath: kubeconfig.yaml
|
||
|
- name: logs
|
||
|
mountPath: /var/log/cs-codex-dist-tests
|
||
|
# command:
|
||
|
# - "dotnet"
|
||
|
# - "test"
|
||
|
# - "Tests"
|
||
|
restartPolicy: Never
|
||
|
volumes:
|
||
|
- name: kubeconfig
|
||
|
secret:
|
||
|
secretName: cs-codex-dist-tests-app-kubeconfig
|
||
|
- name: logs
|
||
|
hostPath:
|
||
|
path: /var/log/cs-codex-dist-tests
|