ci(Jenkinsfile): 更新镜像仓库地址和Git凭证ID
This commit is contained in:
1 parent
1c495d3ae0
commit
6eb8e379ac
1 file changed
+3
-3
Vendored
+3
-3
@@ -12,7 +12,7 @@ pipeline {
|
|||||||
}
|
}
|
||||||
environment {
|
environment {
|
||||||
SERVICE = 'gin-api'
|
SERVICE = 'gin-api'
|
||||||
IMAGE_REPOSITORY = 'harbor.vitatech.com.cn:19443/backend/gin_layout-api'
|
IMAGE_REPOSITORY = 'harbor.vitatech.com.cn:19443/vitavideo/gin_layout-api'
|
||||||
DOCKERFILE = 'Dockerfile'
|
DOCKERFILE = 'Dockerfile'
|
||||||
DEPLOY_ROOT = '/home/SHARE/devstack-scb/apps/layout-test'
|
DEPLOY_ROOT = '/home/SHARE/devstack-scb/apps/layout-test'
|
||||||
}
|
}
|
||||||
@@ -29,7 +29,7 @@ pipeline {
|
|||||||
branches: [[name: '*/' + env.SOURCE_BRANCH]],
|
branches: [[name: '*/' + env.SOURCE_BRANCH]],
|
||||||
userRemoteConfigs: [[
|
userRemoteConfigs: [[
|
||||||
url: 'ssh://git@git.vitatech.com.cn:12222/leo/gin_layout.git',
|
url: 'ssh://git@git.vitatech.com.cn:12222/leo/gin_layout.git',
|
||||||
credentialsId: 'gitea-layout-read'
|
credentialsId: 'gitea'
|
||||||
]],
|
]],
|
||||||
extensions: [[$class: 'CleanBeforeCheckout']]
|
extensions: [[$class: 'CleanBeforeCheckout']]
|
||||||
])
|
])
|
||||||
@@ -41,7 +41,7 @@ pipeline {
|
|||||||
}
|
}
|
||||||
stage('Build and push') {
|
stage('Build and push') {
|
||||||
steps {
|
steps {
|
||||||
sshagent(credentials: ['gitea-layout-read']) {
|
sshagent(credentials: ['gitea']) {
|
||||||
withCredentials([
|
withCredentials([
|
||||||
file(credentialsId: 'gitea-known-hosts', variable: 'GIT_KNOWN_HOSTS'),
|
file(credentialsId: 'gitea-known-hosts', variable: 'GIT_KNOWN_HOSTS'),
|
||||||
usernamePassword(credentialsId: 'harbor-backend',
|
usernamePassword(credentialsId: 'harbor-backend',
|
||||||
|
|||||||
Reference in new issue
Block a user