Consolidate ci triggers.
This commit is contained in:
parent
751a493041
commit
eebc4334ff
|
|
@ -1,5 +0,0 @@
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
||||||
kind: Kustomization
|
|
||||||
resources:
|
|
||||||
- limbo-branch-trigger.yaml
|
|
||||||
- limbo-gui-branch-trigger.yaml
|
|
||||||
|
|
@ -1,51 +0,0 @@
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: limbo-branch-trigger-deployment
|
|
||||||
labels:
|
|
||||||
app: limbo-branch-trigger
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: limbo-branch-trigger
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: limbo-branch-trigger
|
|
||||||
spec:
|
|
||||||
volumes:
|
|
||||||
- name: git-credentials
|
|
||||||
secret:
|
|
||||||
secretName: git-credentials
|
|
||||||
containers:
|
|
||||||
- name: branch-trigger
|
|
||||||
image: harbor.internal.jpace121.net/k8s/j7s_branch_trigger:latest
|
|
||||||
command: ["/bin/sh","-c"]
|
|
||||||
args:
|
|
||||||
- mkdir ~/.ssh;
|
|
||||||
chmod 700 ~/.ssh;
|
|
||||||
cp -r /secrets/. ~/.ssh;
|
|
||||||
chmod -R 400 ~/.ssh/*;
|
|
||||||
ssh-keyscan -H -p 2222 git.jpace121.net >> ~/.ssh/known_hosts;
|
|
||||||
j7s_branch_trigger
|
|
||||||
env:
|
|
||||||
- name: J7S_REPO
|
|
||||||
value: "ssh://git@git.jpace121.net:2222/limbo/limbo.git"
|
|
||||||
- name: J7S_URL
|
|
||||||
value: "http://el-limbo-pipeline-listener.j7s-ci.svc.cluster.local:8080"
|
|
||||||
- name: J7S_ORG_NAME
|
|
||||||
value: "limbo"
|
|
||||||
- name: J7S_REPO_NAME
|
|
||||||
value: "limbo"
|
|
||||||
- name: J7S_JOB_NAME
|
|
||||||
value: "limbo"
|
|
||||||
- name: J7S_PATTERN
|
|
||||||
value: "^refs/heads/.*?$"
|
|
||||||
- name: J7S_LOOPTIME
|
|
||||||
value: "3.0"
|
|
||||||
volumeMounts:
|
|
||||||
- name: git-credentials
|
|
||||||
readOnly: true
|
|
||||||
mountPath: "/secrets"
|
|
||||||
|
|
@ -1,51 +0,0 @@
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: limbo-gui-branch-trigger-deployment
|
|
||||||
labels:
|
|
||||||
app: limbo-gui-branch-trigger
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: limbo-gui-branch-trigger
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: limbo-gui-branch-trigger
|
|
||||||
spec:
|
|
||||||
volumes:
|
|
||||||
- name: git-credentials
|
|
||||||
secret:
|
|
||||||
secretName: git-credentials
|
|
||||||
containers:
|
|
||||||
- name: branch-trigger
|
|
||||||
image: harbor.internal.jpace121.net/k8s/j7s_branch_trigger:latest
|
|
||||||
command: ["/bin/sh","-c"]
|
|
||||||
args:
|
|
||||||
- mkdir ~/.ssh;
|
|
||||||
chmod 700 ~/.ssh;
|
|
||||||
cp -r /secrets/. ~/.ssh;
|
|
||||||
chmod -R 400 ~/.ssh/*;
|
|
||||||
ssh-keyscan -H -p 2222 git.jpace121.net >> ~/.ssh/known_hosts;
|
|
||||||
j7s_branch_trigger
|
|
||||||
env:
|
|
||||||
- name: J7S_REPO
|
|
||||||
value: "ssh://git@git.jpace121.net:2222/limbo/limbo_gui.git"
|
|
||||||
- name: J7S_URL
|
|
||||||
value: "http://el-limbo-pipeline-listener.j7s-ci.svc.cluster.local:8080"
|
|
||||||
- name: J7S_PATTERN
|
|
||||||
value: "^refs/heads/.*?$"
|
|
||||||
- name: J7S_ORG_NAME
|
|
||||||
value: "limbo"
|
|
||||||
- name: J7S_REPO_NAME
|
|
||||||
value: "limbo_gui"
|
|
||||||
- name: J7S_JOB_NAME
|
|
||||||
value: "limbo-gui"
|
|
||||||
- name: J7S_LOOPTIME
|
|
||||||
value: "3.0"
|
|
||||||
volumeMounts:
|
|
||||||
- name: git-credentials
|
|
||||||
readOnly: true
|
|
||||||
mountPath: "/secrets"
|
|
||||||
Loading…
Reference in New Issue