This commit is contained in:
iFargle
2023-02-08 13:25:15 +09:00
parent 1050478285
commit 778893b28d

26
Jenkinsfile vendored
View File

@@ -36,15 +36,27 @@ pipeline {
}
}
}
stage('Push') {
options { timeout(time: 5, unit: 'MINUTES') }
steps {
script {
docker.withRegistry('https://git.sysctl.io/', 'gitea-jenkins-pat') {
dockerImage.push("${env.BRANCH_NAME}-${env.BUILD_ID}")
stage('Push Testing') {
when { branch 'testing'}
if (branch == 'testing') {
options { timeout(time: 5, unit: 'MINUTES') }
steps {
script {
docker.withRegistry('https://git.sysctl.io/', 'gitea-jenkins-pat') {
dockerImage.push("${env.BRANCH_NAME}-${env.BUILD_ID}")
}
}
}
}
if (branch == 'main') {
options { timeout(time: 5, unit: 'MINUTES') }
steps {
script {
docker.withRegistry('https://git.sysctl.io/', 'gitea-jenkins-pat') {
dockerImage.push("latest")
}
}
}
milestone 30
}
}
}