diff --git a/.drone.yml b/.drone.yml index a11d357..e845d77 100644 --- a/.drone.yml +++ b/.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: