prevent staging build leaking commits to prod
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
ea9de9298a
commit
7451356aec
1 changed files with 7 additions and 1 deletions
|
@ -22,12 +22,16 @@ steps:
|
||||||
image: aaronriedel/kustomize-ci
|
image: aaronriedel/kustomize-ci
|
||||||
commands:
|
commands:
|
||||||
- cd /deployment-repo
|
- cd /deployment-repo
|
||||||
|
- git clone https://git.ar21.de/yolokube/core-deployments.git .
|
||||||
|
- cd /staging-repo
|
||||||
- git clone -b $DRONE_BRANCH https://git.ar21.de/yolokube/core-deployments.git .
|
- git clone -b $DRONE_BRANCH https://git.ar21.de/yolokube/core-deployments.git .
|
||||||
- cd /deployment-repo/dashboard/overlays/staging
|
- cd /staging-repo/dashboard/overlays/staging
|
||||||
- kustomize build -o /deployment-repo/dashboard/staging/dashboard.yaml
|
- kustomize build -o /deployment-repo/dashboard/staging/dashboard.yaml
|
||||||
volumes:
|
volumes:
|
||||||
- name: deployment-repo
|
- name: deployment-repo
|
||||||
path: /deployment-repo
|
path: /deployment-repo
|
||||||
|
- name: staging-repo
|
||||||
|
path: /staging-repo
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
exclude:
|
exclude:
|
||||||
|
@ -76,6 +80,8 @@ steps:
|
||||||
volumes:
|
volumes:
|
||||||
- name: deployment-repo
|
- name: deployment-repo
|
||||||
temp: {}
|
temp: {}
|
||||||
|
- name: staging-repo
|
||||||
|
temp: {}
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
exclude:
|
exclude:
|
||||||
|
|
Loading…
Reference in a new issue