41 lines
1.0 KiB
YAML
41 lines
1.0 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: test-branch-pipeline-deployment
|
|
namespace: j7s-ci
|
|
labels:
|
|
app: test-branch-pipeline
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: test-branch-pipeline
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: test-branch-pipeline
|
|
spec:
|
|
volumes:
|
|
- name: ssh-volume
|
|
secret:
|
|
secretName: git-credentials
|
|
containers:
|
|
- name: branch-pipeline
|
|
image: 192.168.1.149:8443/j7s_branch_trigger:0.2
|
|
command: ["/bin/bash", "-c"]
|
|
volumeMounts:
|
|
- mountPath: /ssh-volume
|
|
name: ssh-volume
|
|
env:
|
|
- name: J7S_REPO
|
|
value: "ssh://git.jpace121.net:2222/tests/job-test"
|
|
- name: J7S_URL
|
|
value: http://el-test-pipeline-listener.j7s-ci.svc.cluster.local:8080
|
|
args:
|
|
- |
|
|
cp -r /ssh-volume ~/.ssh
|
|
chmod 700 ~/.ssh
|
|
chmod -R 400 ~/.ssh/*
|
|
|
|
j7s_branch_trigger |