add testing to pipeline
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Aaron Riedel 2024-01-29 20:23:48 +01:00
parent 936980bfb9
commit bcae83ace5
Signed by: aaron
GPG key ID: 643004654D40D577

View file

@ -36,6 +36,59 @@ steps:
- master - master
event: event:
- push - push
- name: test (prod)
image: git.ar21.de/yolokube/dashboard:${DRONE_BUILD_NUMBER}
commands:
- nginx
- curl -fsS -m 10 --retry 5 -o /dev/null http://localhost:8080
when:
branch:
- master
event:
- push
- name: test (staging)
image: git.ar21.de/yolokube/dashboard:staging-${DRONE_BUILD_NUMBER}
commands:
- nginx
- curl -fsS -m 10 --retry 5 -o /dev/null http://localhost:8080
when:
branch:
exclude:
- master
event:
- push
- name: bump tag in deployment-repo (prod)
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 edit set image git.ar21.de/yolokube/dashboard=git.ar21.de/yolokube/dashboard:${DRONE_BUILD_NUMBER}
volumes:
- name: deployment-repo
path: /deployment-repo
when:
branch:
- master
event:
- push
- name: bump tag in deployment-repo (staging)
image: aaronriedel/kustomize-ci
commands:
- cd /deployment-repo
- git clone https://git.ar21.de/yolokube/core-deployments.git .
- cd /deployment-repo/dashboard/overlays/staging
- kustomize edit set image git.ar21.de/yolokube/dashboard=git.ar21.de/yolokube/dashboard:staging-${DRONE_BUILD_NUMBER}
volumes:
- name: deployment-repo
path: /deployment-repo
when:
branch:
exclude:
- master
event:
- push
- name: bump tag in deployment-repo (prod) - name: bump tag in deployment-repo (prod)
image: aaronriedel/kustomize-ci image: aaronriedel/kustomize-ci
commands: commands: