From 495027ebeff12ff9e81725b5fbbb2dac077442e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Tue, 3 May 2022 19:10:11 +0300 Subject: [PATCH] Add Drone config --- .drone.yml | 2 ++ Dockerfile | 4 ++-- Jenkinsfile | 20 -------------------- 3 files changed, 4 insertions(+), 22 deletions(-) create mode 100644 .drone.yml delete mode 100644 Jenkinsfile diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..e7b5dfa --- /dev/null +++ b/.drone.yml @@ -0,0 +1,2 @@ +kind: template +load: docker.yaml diff --git a/Dockerfile b/Dockerfile index 0ae211e..c5c7214 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ -FROM python:3 -RUN pip install aiostream sanic +FROM harbor.k-space.ee/k-space/microservice-base +RUN pip install aiostream ADD aio_api_ros /aio_api_ros WORKDIR /aio_api_ros RUN pip install . diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index d77fdab..0000000 --- a/Jenkinsfile +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/groovy -image = "mikrotik-exporter" -label = "latest" -build = null - -node { - stage("Checkout") { - checkout scm - } - - stage("Build") { - build = docker.build("kspaceee/${image}") - } - - stage("Push") { - docker.withRegistry("https://registry.hub.docker.com", "dockerhub-kspace") { - build.push(label) - } - } -}