ci(jenkins): 调整镜像仓库路径及Gitea凭证配置
This commit is contained in:
1 parent
9f2092b7c5
commit
d3f3854f8d
2 files changed
+6
-6
No files matched your search
+3
-3
@@ -12,7 +12,7 @@ pipeline {
|
|||||||
}
|
}
|
||||||
environment {
|
environment {
|
||||||
SERVICE = 'micro-crontab'
|
SERVICE = 'micro-crontab'
|
||||||
IMAGE_REPOSITORY = 'harbor.vitatech.com.cn:19443/backend/micro_layout-crontab'
|
IMAGE_REPOSITORY = 'harbor.vitatech.com.cn:19443/vitavideo/micro_layout-crontab'
|
||||||
DOCKERFILE = 'build/crontab/Dockerfile'
|
DOCKERFILE = 'build/crontab/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/micro_layout.git',
|
url: 'ssh://git@git.vitatech.com.cn:12222/leo/micro_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',
|
||||||
|
|||||||
+3
-3
@@ -12,7 +12,7 @@ pipeline {
|
|||||||
}
|
}
|
||||||
environment {
|
environment {
|
||||||
SERVICE = 'micro-rpc'
|
SERVICE = 'micro-rpc'
|
||||||
IMAGE_REPOSITORY = 'harbor.vitatech.com.cn:19443/backend/micro_layout-rpc'
|
IMAGE_REPOSITORY = 'harbor.vitatech.com.cn:19443/vitavideo/micro_layout-rpc'
|
||||||
DOCKERFILE = 'build/srv/Dockerfile'
|
DOCKERFILE = 'build/srv/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/micro_layout.git',
|
url: 'ssh://git@git.vitatech.com.cn:12222/leo/micro_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