From 5bb4da6178619a0c1d2da7f194d1718a715dbb1d Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Fri, 8 Jan 2021 17:53:19 -0500 Subject: [PATCH] More debugging --- .drone.yml | 60 ++++++++++++++++++++++++++++++------------------------ 1 file changed, 33 insertions(+), 27 deletions(-) diff --git a/.drone.yml b/.drone.yml index 554c3c2..391fdea 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,29 +4,20 @@ name: test steps: - - name: test - image: golang:1.12 - environment: - VERSION: ${DRONE_TAG:-${DRONE_COMMIT}} + - name: skip + image: busybox commands: - - make build - - make test + - echo ok - - name: check - image: iamthefij/drone-pre-commit:personal - - - name: notify - image: drillster/drone-email - settings: - host: - from_secret: SMTP_HOST - username: - from_secret: SMTP_USER - password: - from_secret: SMTP_PASS - from: drone@iamthefij.com - when: - status: [changed, failure] + # - name: test + # image: golang:1.12 + # environment: + # VERSION: ${DRONE_TAG:-${DRONE_COMMIT}} + # commands: + # - make test + # + # - name: check + # image: iamthefij/drone-pre-commit:personal --- kind: pipeline @@ -49,11 +40,14 @@ steps: environment: VERSION: ${DRONE_TAG:-${DRONE_COMMIT}} commands: - - make all + # - make all + - make dist/minitor-linux-amd64 - name: compress binaries for release image: busybox commands: + - pwd + - ls - ./compress_release.sh - name: upload gitea pre-release @@ -141,15 +135,27 @@ steps: password: from_secret: docker_password +--- +kind: pipeline +name: notify + +depends_on: + - test + - publish + +trigger: + status: + - failure + +steps: + - name: notify image: drillster/drone-email settings: host: - from_secret: SMTP_HOST + from_secret: SMTP_HOST # pragma: whitelist secret username: - from_secret: SMTP_USER + from_secret: SMTP_USER # pragma: whitelist secret password: - from_secret: SMTP_PASS + from_secret: SMTP_PASS # pragma: whitelist secret from: drone@iamthefij.com - when: - status: [changed, failure]