2023-10-11 22:57:50 +02:00
|
|
|
kind: pipeline
|
|
|
|
name: deploy
|
|
|
|
steps:
|
|
|
|
- name: kustomize build dashboard (prod + staging)
|
|
|
|
image: aaronriedel/kustomize-ci
|
|
|
|
commands:
|
|
|
|
- cd /deployment-repo
|
|
|
|
- git clone https://git.ar21.de/yolokube/core-deployments.git .
|
|
|
|
- cd /deployment-repo/dashboard/overlays/prod
|
|
|
|
- kustomize build -o /deployment-repo/dashboard/prod/dashboard.yaml
|
|
|
|
- cd /deployment-repo/dashboard/overlays/staging
|
|
|
|
- kustomize build -o /deployment-repo/dashboard/staging/dashboard.yaml
|
|
|
|
volumes:
|
|
|
|
- name: deployment-repo
|
|
|
|
path: /deployment-repo
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- main
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- name: kustomize build dashboard (staging)
|
|
|
|
image: aaronriedel/kustomize-ci
|
|
|
|
commands:
|
|
|
|
- cd /deployment-repo
|
2024-02-02 11:40:17 +01:00
|
|
|
- git clone https://git.ar21.de/yolokube/core-deployments.git .
|
|
|
|
- cd /staging-repo
|
2024-02-02 11:27:33 +01:00
|
|
|
- git clone -b $DRONE_BRANCH https://git.ar21.de/yolokube/core-deployments.git .
|
2024-02-02 11:40:17 +01:00
|
|
|
- cd /staging-repo/dashboard/overlays/staging
|
2023-10-11 22:57:50 +02:00
|
|
|
- kustomize build -o /deployment-repo/dashboard/staging/dashboard.yaml
|
|
|
|
volumes:
|
|
|
|
- name: deployment-repo
|
|
|
|
path: /deployment-repo
|
2024-02-02 11:40:17 +01:00
|
|
|
- name: staging-repo
|
|
|
|
path: /staging-repo
|
2023-10-11 22:57:50 +02:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
exclude:
|
|
|
|
- main
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- name: kustomize push dashboard changes (prod + staging)
|
|
|
|
image: appleboy/drone-git-push
|
|
|
|
settings:
|
|
|
|
branch: main
|
|
|
|
remote: ssh://git@git.ar21.de:2222/yolokube/core-deployments.git
|
|
|
|
path: /deployment-repo
|
|
|
|
force: false
|
|
|
|
commit: true
|
2024-02-13 13:50:40 +01:00
|
|
|
commit_message: "KUSTOMIZE BUILD: rebuild dashboard deployment with kustomize ${DRONE_BUILD_NUMBER} (done automagically via Drone pipeline) [CI SKIP]"
|
2023-10-11 22:57:50 +02:00
|
|
|
ssh_key:
|
|
|
|
from_secret: GITEA_SSH_KEY
|
|
|
|
volumes:
|
|
|
|
- name: deployment-repo
|
|
|
|
path: /deployment-repo
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- main
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- name: kustomize push dashboard changes (staging)
|
|
|
|
image: appleboy/drone-git-push
|
|
|
|
settings:
|
|
|
|
branch: main
|
|
|
|
remote: ssh://git@git.ar21.de:2222/yolokube/core-deployments.git
|
|
|
|
path: /deployment-repo
|
|
|
|
force: false
|
|
|
|
commit: true
|
2024-02-02 11:46:24 +01:00
|
|
|
commit_message: "KUSTOMIZE BUILD STAGING: rebuild dashboard deployment with kustomize ${DRONE_BUILD_NUMBER} [CI SKIP]"
|
2023-10-11 22:57:50 +02:00
|
|
|
ssh_key:
|
|
|
|
from_secret: GITEA_SSH_KEY
|
|
|
|
volumes:
|
|
|
|
- name: deployment-repo
|
|
|
|
path: /deployment-repo
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
exclude:
|
|
|
|
- main
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
volumes:
|
|
|
|
- name: deployment-repo
|
|
|
|
temp: {}
|
2024-02-02 11:40:17 +01:00
|
|
|
- name: staging-repo
|
|
|
|
temp: {}
|
2023-10-11 22:57:50 +02:00
|
|
|
when:
|
|
|
|
event:
|
|
|
|
exclude:
|
|
|
|
- pull_request
|