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

4
run.sh
View File

@ -3,9 +3,9 @@
set -e set -e
# Build Dependencies # Build Dependencies
docker build --tag minetest-dev . docker build ${DOCKER_BUILD_OPTIONS} --tag minetest-dev .
# Extract # Extract
rm -rf out rm -rf out
mkdir out mkdir out
docker run --rm -v "$(pwd)/out:/out" minetest-dev ./build-minetest.sh docker run --rm -v "$(pwd)/out:/out" minetest-dev ./build-minetest.sh