add hoylogo deployment to this repo
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Aaron Riedel 2024-05-29 22:38:08 +02:00
parent 6ae43134b9
commit 651cfe10ba
Signed by: aaron
GPG key ID: 643004654D40D577
10 changed files with 392 additions and 0 deletions

88
.drone.yml Normal file
View file

@ -0,0 +1,88 @@
kind: pipeline
name: deploy
steps:
- name: kustomize build hoylogo (prod + staging)
image: git.ar21.de/aaron/kustomize-ci
commands:
- cd /deployment-repo
- git clone https://git.ar21.de/aaron/k8s-deployments.git .
- cd /deployment-repo/hoylogo/overlays/prod
- kustomize build -o /deployment-repo/hoylogo/prod/hoylogo.yaml
- cd /deployment-repo/hoylogo/overlays/staging
- kustomize build -o /deployment-repo/hoylogo/staging/hoylogo.yaml
volumes:
- name: deployment-repo
path: /deployment-repo
when:
branch:
- main
event:
- push
- name: kustomize build hoylogo (staging)
image: git.ar21.de/aaron/kustomize-ci
commands:
- cd /deployment-repo
- git clone https://git.ar21.de/aaron/k8s-deployments.git .
- cd /staging-repo
- git clone -b $DRONE_BRANCH https://git.ar21.de/aaron/k8s-deployments.git .
- cd /staging-repo/hoylogo/overlays/staging
- kustomize build -o /deployment-repo/hoylogo/staging/hoylogo.yaml
volumes:
- name: deployment-repo
path: /deployment-repo
- name: staging-repo
path: /staging-repo
when:
branch:
exclude:
- main
event:
- push
- name: kustomize push hoylogo changes (prod + staging)
image: appleboy/drone-git-push
settings:
branch: main
remote: ssh://git@git.ar21.de:2222/aaron/k8s-deployments.git
path: /deployment-repo
force: false
commit: true
commit_message: "KUSTOMIZE BUILD: rebuild hoylogo deployment with kustomize ${DRONE_BUILD_NUMBER} (done automagically via Drone pipeline) [CI SKIP]"
ssh_key:
from_secret: GITEA_SSH_KEY
volumes:
- name: deployment-repo
path: /deployment-repo
when:
branch:
- main
event:
- push
- name: kustomize push hoylogo changes (staging)
image: appleboy/drone-git-push
settings:
branch: main
remote: ssh://git@git.ar21.de:2222/aaron/k8s-deployments.git
path: /deployment-repo
force: false
commit: true
commit_message: "KUSTOMIZE BUILD STAGING: rebuild hoylogo deployment with kustomize ${DRONE_BUILD_NUMBER} [CI SKIP]"
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: {}
- name: staging-repo
temp: {}
when:
event:
exclude:
- pull_request