调整ecr

This commit is contained in:
xuht 2025-07-31 21:20:15 +08:00
parent d654b7f615
commit c6d43fc8cf
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
FROM 794038239327.dkr.ecr.ap-southeast-1.amazonaws.com/halar-dev:nginx-alpine3.17
FROM 989328288674.dkr.ecr.ap-southeast-1.amazonaws.com/likei-dev:nginx-alpine3.17
COPY dist/ /usr/share/nginx/html/
COPY nginx/nginx.conf /etc/nginx/nginx.conf
COPY nginx/default.conf /etc/nginx/conf.d/default.conf

View File

@ -5,8 +5,8 @@ pipeline {
}
environment {
BUILD_IMAGE = "${sh(script:'echo -n halar-dev:page-console-$(date +%Y%m%dv%H%M%S)', returnStdout: true)}"
IMAGE_REP_TAG = "794038239327.dkr.ecr.ap-southeast-1.amazonaws.com/"
BUILD_IMAGE = "${sh(script:'echo -n likei-dev:page-console-$(date +%Y%m%dv%H%M%S)', returnStdout: true)}"
IMAGE_REP_TAG = "989328288674.dkr.ecr.ap-southeast-1.amazonaws.com/"
K8S_NAMESPACE = "local"
K8S_DEPLOYMENT = "console-page"
K8S_APP_LABEL = "console-page"
@ -25,7 +25,7 @@ pipeline {
}
stage('Build image') {
steps {
sh "aws ecr get-login-password --region ap-southeast-1 | docker login --username AWS --password-stdin 794038239327.dkr.ecr.ap-southeast-1.amazonaws.com"
sh "aws ecr get-login-password --region ap-southeast-1 | docker login --username AWS --password-stdin 989328288674.dkr.ecr.ap-southeast-1.amazonaws.com"
sh "docker build -t ${BUILD_IMAGE} ."
}
}