From 2f28aa2ab839fbecdcca7457dddd103f0f9eca5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Tue, 28 Apr 2020 17:41:19 +0200 Subject: [PATCH] update docker namespace and add teams webhook --- .drone.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 860cbed..fcba203 100644 --- a/.drone.yml +++ b/.drone.yml @@ -25,10 +25,16 @@ steps: from_secret: DOCKER_PASSWORD commands: - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin registry.kmlabz.com - - docker build -t="registry.kmlabz.com/$DOCKER_USERNAME/$DRONE_REPO_NAME" . - - docker build -t="registry.kmlabz.com/$DOCKER_USERNAME/$DRONE_REPO_NAME:$DRONE_BUILD_NUMBER" . - - docker push "registry.kmlabz.com/$DOCKER_USERNAME/$DRONE_REPO_NAME" - - docker push "registry.kmlabz.com/$DOCKER_USERNAME/$DRONE_REPO_NAME:$DRONE_BUILD_NUMBER" + - docker build -t="registry.kmlabz.com/birbnetes/$DRONE_REPO_NAME" . + - docker build -t="registry.kmlabz.com/birbnetes/$DRONE_REPO_NAME:$DRONE_BUILD_NUMBER" . + - docker push "registry.kmlabz.com/birbnetes/$DRONE_REPO_NAME" + - docker push "registry.kmlabz.com/birbnetes/$DRONE_REPO_NAME:$DRONE_BUILD_NUMBER" + + notify: + image: kuperiu/drone-teams + webhook: + from_secret: TEAMS_WEBHOOK + when: { status: [ failure ] } services: - name: docker