switch to sourcecode,confdroid.com
This commit is contained in:
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
@@ -56,11 +56,11 @@ stage('build and push image to gitlab') {
|
|||||||
withCredentials([usernamePassword(credentialsId: 'Jenkins-gitea', passwordVariable: 'pw', usernameVariable: 'un')]) {
|
withCredentials([usernamePassword(credentialsId: 'Jenkins-gitea', passwordVariable: 'pw', usernameVariable: 'un')]) {
|
||||||
sh '''
|
sh '''
|
||||||
set +xe
|
set +xe
|
||||||
docker login gitea.confdroid.com -u $un -p $pw
|
docker login sourcecode.confdroid.com -u $un -p $pw
|
||||||
docker build --network=host -t gitea.confdroid.com/confdroid/confdroid_pgbouncer:1.1.4 .
|
docker build --network=host -t sourcecode.confdroid.com/confdroid/confdroid_pgbouncer:1.1.4 .
|
||||||
docker build --network=host -t gitea.confdroid.com/confdroid/confdroid_pgbouncer:latest .
|
docker build --network=host -t sourcecode.confdroid.com/confdroid/confdroid_pgbouncer:latest .
|
||||||
docker push gitea.confdroid.com/confdroid/confdroid_pgbouncer:1.1.4
|
docker push sourcecode.confdroid.com/confdroid/confdroid_pgbouncer:1.1.4
|
||||||
docker push gitea.confdroid.com/confdroid/confdroid_pgbouncer:latest
|
docker push sourcecode.confdroid.com/confdroid/confdroid_pgbouncer:latest
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -89,7 +89,7 @@ stage('build and push image to gitlab') {
|
|||||||
sh '''
|
sh '''
|
||||||
git checkout master
|
git checkout master
|
||||||
git pull origin master
|
git pull origin master
|
||||||
git remote add master https://gitea.confdroid.com/confdroid/confdroid_pgbouncer.git
|
git remote add master https://sourcecode.confdroid.com/confdroid/confdroid_pgbouncer.git
|
||||||
git -c credential.helper="!f() { echo username=${GITEA_USER}; echo password=${GITEA_TOKEN}; }; f" \
|
git -c credential.helper="!f() { echo username=${GITEA_USER}; echo password=${GITEA_TOKEN}; }; f" \
|
||||||
push master --mirror
|
push master --mirror
|
||||||
'''
|
'''
|
||||||
|
|||||||
Reference in New Issue
Block a user