9
0
Fork 0

Switch to drone
continuous-integration/drone Build is passing Details

This commit is contained in:
Madis Mägi 2022-02-08 18:35:09 +02:00
parent afccbc3299
commit 362d0cb258
4 changed files with 18 additions and 29 deletions

10
.drone.yml Normal file
View File

@ -0,0 +1,10 @@
kind: pipeline
type: kubernetes
name: default
steps:
- name: build
image: ubuntu
commands:
- sh "00-deps.sh"
- sh "10-build.sh"

8
00-deps.sh Normal file
View File

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

29
Jenkinsfile vendored
View File

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