Add Github push to Jenkinsfile

This commit is contained in:
Albert Copeland
2023-02-09 11:16:53 +09:00
committed by GitHub
parent 5259f59163
commit 9c8e2e6203

5
Jenkinsfile vendored
View File

@@ -47,6 +47,9 @@ pipeline {
docker.withRegistry('https://git.sysctl.io/', 'gitea-jenkins-pat') {
dockerImage.push("latest")
}
docker.withRegistry('https://ghcr.io/', 'github-ifargle-pat') {
dockerImage.push("latest")
}
} else {
docker.withRegistry('https://git.sysctl.io/', 'gitea-jenkins-pat') {
dockerImage.push("${env.BRANCH_NAME}-${env.BUILD_ID}")
@@ -56,4 +59,4 @@ pipeline {
}
}
}
}
}