From 362d0cb258b598ba27441320f75a647fb97ce89e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Madis=20M=C3=A4gi?= Date: Tue, 8 Feb 2022 18:35:09 +0200 Subject: [PATCH] Switch to drone --- .drone.yml | 10 ++++++++++ 00-deps.sh | 8 ++++++++ script.sh => 10-build.sh | 0 Jenkinsfile | 29 ----------------------------- 4 files changed, 18 insertions(+), 29 deletions(-) create mode 100644 .drone.yml create mode 100644 00-deps.sh rename script.sh => 10-build.sh (100%) delete mode 100644 Jenkinsfile diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..887688e --- /dev/null +++ b/.drone.yml @@ -0,0 +1,10 @@ +kind: pipeline +type: kubernetes +name: default + +steps: +- name: build + image: ubuntu + commands: + - sh "00-deps.sh" + - sh "10-build.sh" diff --git a/00-deps.sh b/00-deps.sh new file mode 100644 index 0000000..9563f51 --- /dev/null +++ b/00-deps.sh @@ -0,0 +1,8 @@ +#!/bin/bash +set -e +set -x + +#Dependency stage +apt-get update -y +apt-get install -y -qq build-essential file gawk git-core unzip python3 python3-distutils rsync wget xz-utils + diff --git a/script.sh b/10-build.sh similarity index 100% rename from script.sh rename to 10-build.sh diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index 6fe2dbb..0000000 --- a/Jenkinsfile +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/groovy -directory = "openwrt-camera-image" -pipeline { - agent any - stages { - stage("Setup") { - steps { - dir(directory) { - deleteDir() - checkout scm - } - } - } - stage("Build") { - steps { - dir(directory) { - sh "sh script.sh" - } - } - } - stage("Deliver") { - steps { - dir(directory) { - archiveArtifacts artifacts: "bin/*", allowEmptyArchive: false, fingerprint: false - } - } - } - } -}