From 3926a962381e520e7abc33a18640c97b3d3edbc3 Mon Sep 17 00:00:00 2001 From: lbrinkhaus Date: Fri, 14 Jan 2022 17:12:02 +0100 Subject: [PATCH] Create .drone.yml for build pipeline --- .drone.yml | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..9582761 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,53 @@ +kind: pipeline +name: build +type: kubernetes + +steps: + - name: docker_netbox + image: plugins/docker + settings: + dockerfile: Dockerfile + registry: harbor.dragse.it + repo: harbor.dragse.it/base/netbox + tags: + - "3" + - "3.1" + - "3.1.5" + - "latest" + username: + from_secret: repo_username + password: + from_secret: repo_password + - name: send telegram notification + image: appleboy/drone-telegram + settings: + token: + from_secret: tele_token + to: + from_secret: tele_user + +--- +kind: secret +name: repo_username +get: + path: repo-credentials + name: username +--- +kind: secret +name: repo_password +get: + path: repo-credentials + name: password + +--- +kind: secret +name: tele_user +get: + path: telegram-notification + name: user_id +--- +kind: secret +name: tele_token +get: + path: telegram-notification + name: token