Files
provisioning/dockerfiles/services/gitea/Jenkinsfile

28 lines
622 B
Groovy

node('docker') {
def workdir = 'dockerfiles/services/gitea'
stage('prepare') {
git credentialsId: 'f1f58215-c789-44a2-9b72-50e4425cb061', url: 'ssh://git@git.xai-corp.net:10022/xai-corp.net/provisioning.git'
sh 'ls'
}
stage('build') {
dir(workdir) {
//nothing to do
}
}
stage('deploy') {
dir(workdir) {
sh "DOCKER_HOST=dkhost:2376 docker stack deploy -c docker-compose.yml gitea"
}
}
stage('smoke tests') {
dir(workdir) {
sleep 60
sh "curl -If http://dkhost:1008"
}
}
}