add testing to pipeline
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
936980bfb9
commit
bcae83ace5
1 changed files with 53 additions and 0 deletions
53
.drone.yml
53
.drone.yml
|
@ -36,6 +36,59 @@ steps:
|
|||
- master
|
||||
event:
|
||||
- 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)
|
||||
image: aaronriedel/kustomize-ci
|
||||
commands:
|
||||
|
|
Loading…
Reference in a new issue