2020-09-26 23:48:47 +00:00
|
|
|
pipeline {
|
2021-06-17 21:32:24 +00:00
|
|
|
agent none
|
2020-09-26 23:48:47 +00:00
|
|
|
stages {
|
2021-06-21 17:26:55 +00:00
|
|
|
stage('Debian Bullseye') {
|
2021-06-17 21:32:24 +00:00
|
|
|
agent {
|
2022-03-12 01:39:00 +00:00
|
|
|
dockerfile {
|
2022-03-10 03:53:37 +00:00
|
|
|
filename 'scripts/ci/Dockerfile'
|
2021-06-21 17:26:55 +00:00
|
|
|
args '-v /var/run/docker.sock:/var/run/docker.sock'
|
2021-06-17 21:32:24 +00:00
|
|
|
}
|
2020-09-26 23:48:47 +00:00
|
|
|
}
|
2021-06-21 17:26:55 +00:00
|
|
|
stages {
|
|
|
|
stage('Build') {
|
|
|
|
steps {
|
|
|
|
sh './scripts/ci/run.sh'
|
|
|
|
}
|
|
|
|
post {
|
|
|
|
success {
|
2022-03-10 02:23:41 +00:00
|
|
|
archiveArtifacts artifacts: 'out/*.AppImage*', fingerprint: true
|
2021-06-21 17:26:55 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Publish') {
|
|
|
|
steps {
|
|
|
|
sh 'apt-get update && apt-get install -y docker.io'
|
2021-12-01 02:40:02 +00:00
|
|
|
sh 'docker build --no-cache --tag thebrokenrail/minecraft-pi-reborn-legacy-server .'
|
2021-06-21 17:26:55 +00:00
|
|
|
withCredentials([usernamePassword(credentialsId: 'docker_hub_login', usernameVariable: 'DOCKER_HUB_USERNAME', passwordVariable: 'DOCKER_HUB_PASSWORD')]) {
|
|
|
|
sh 'docker login -u "${DOCKER_HUB_USERNAME}" -p "${DOCKER_HUB_PASSWORD}"'
|
|
|
|
}
|
2021-12-01 02:40:02 +00:00
|
|
|
sh 'docker push thebrokenrail/minecraft-pi-reborn-legacy-server'
|
2021-06-21 17:26:55 +00:00
|
|
|
}
|
2020-09-26 23:48:47 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|