Add Jenkins
Some checks reported errors
Minetest-For-PinePhone/pipeline/head Something is wrong with the build of this commit
Some checks reported errors
Minetest-For-PinePhone/pipeline/head Something is wrong with the build of this commit
This commit is contained in:
parent
aa7de20af5
commit
d268c1eec0
3
Dockerfile.build
Normal file
3
Dockerfile.build
Normal file
@ -0,0 +1,3 @@
|
||||
FROM ubuntu:focal
|
||||
|
||||
RUN apt-get update && apt-get install -y docker.io
|
20
Jenkinsfile
vendored
Normal file
20
Jenkinsfile
vendored
Normal 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
4
run.sh
@ -3,9 +3,9 @@
|
||||
set -e
|
||||
|
||||
# Build Dependencies
|
||||
docker build --tag minetest-dev .
|
||||
docker build ${DOCKER_BUILD_OPTIONS} --tag minetest-dev .
|
||||
|
||||
# Extract
|
||||
rm -rf 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
|
||||
|
Loading…
Reference in New Issue
Block a user