This commit is contained in:
parent
afccbc3299
commit
362d0cb258
10
.drone.yml
Normal file
10
.drone.yml
Normal 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
8
00-deps.sh
Normal 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
29
Jenkinsfile
vendored
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user