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 - } - } - } - } -}