Minecraft: Pi Edition Modding Project
https://discord.com/invite/aDqejQGMMy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.4 KiB
37 lines
1.4 KiB
pipeline { |
|
agent none |
|
stages { |
|
stage('Debian Buster') { |
|
agent { |
|
dockerfile { |
|
filename 'scripts/ci/Dockerfile' |
|
args '-v /var/run/docker.sock:/var/run/docker.sock --network host' |
|
} |
|
} |
|
stages { |
|
stage('Build') { |
|
steps { |
|
sh './scripts/ci/run.sh' |
|
} |
|
post { |
|
success { |
|
archiveArtifacts artifacts: 'out/*.AppImage*', fingerprint: true |
|
} |
|
} |
|
} |
|
stage('Publish') { |
|
steps { |
|
sh 'apt-get update && apt-get install -y docker.io' |
|
sh 'rm -rf ./out/server-amd64' |
|
sh './scripts/build.sh server amd64' |
|
sh 'docker build --no-cache --tag thebrokenrail/minecraft-pi-reborn-server .' |
|
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}"' |
|
} |
|
sh 'docker push thebrokenrail/minecraft-pi-reborn-server' |
|
} |
|
} |
|
} |
|
} |
|
} |
|
}
|
|
|