Add Jenkins
Some checks reported errors
Minetest-For-PinePhone/pipeline/head Something is wrong with the build of this commit

This commit is contained in:
TheBrokenRail 2020-12-21 11:53:31 -05:00
parent aa7de20af5
commit d268c1eec0
3 changed files with 25 additions and 2 deletions

3
Dockerfile.build Normal file
View File

@ -0,0 +1,3 @@
FROM ubuntu:focal
RUN apt-get update && apt-get install -y docker.io

20
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,20 @@
pipeline {
agent {
dockerfile {
filename 'Dockerfile.build'
args '-v /var/run/docker.sock:/var/run/docker.sock'
}
}
stages {
stage('Build') {
steps {
sh 'DOCKER_BUILD_OPTIONS="--no-cache" ./run.sh'
}
post {
success {
archiveArtifacts artifacts: 'out/**', fingerprint: true
}
}
}
}
}

2
run.sh
View File

@ -3,7 +3,7 @@
set -e
# Build Dependencies
docker build --tag minetest-dev .
docker build ${DOCKER_BUILD_OPTIONS} --tag minetest-dev .
# Extract
rm -rf out