commit 1203e1e7e672fa5aeddf0423878f7cfdfb83c453 Author: Markus Pesch Date: Tue Aug 31 20:13:26 2021 +0200 wip diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..91892f4 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,71 @@ +--- +kind: pipeline +type: kubernetes +name: build_a + +platform: + os: linux + arch: amd64 + +steps: +- name: test_a + commands: + - echo "hello" + image: docker.io/library/alpine:latest + resources: + limits: + cpu: 50 + memory: 50M + +--- +kind: pipeline +type: kubernetes +name: build_b + +platform: + os: linux + arch: amd64 + +steps: +- name: test_b + commands: + - exit 1 + image: docker.io/library/alpine:latest + resources: + limits: + cpu: 50 + memory: 50M + +--- +kind: pipeline +type: kubernetes +name: notification + +platform: + os: linux + arch: amd64 + +depends_on: +- build_a +- build_b + +steps: +- name: email-notification + environment: + PLUGIN_HOST: + from_secret: smtp_host + PLUGIN_USERNAME: + from_secret: smtp_username + PLUGIN_PASSWORD: + from_secret: smtp_password + PLUGIN_FROM: + from_secret: smtp_mail_address + image: docker.io/drillster/drone-email:latest + resources: + limits: + cpu: 50 + memory: 25M + when: + status: + - changed + - failure \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..717c20a --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# pipeline test \ No newline at end of file