调整ecr
This commit is contained in:
parent
d654b7f615
commit
c6d43fc8cf
@ -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 dist/ /usr/share/nginx/html/
|
||||||
COPY nginx/nginx.conf /etc/nginx/nginx.conf
|
COPY nginx/nginx.conf /etc/nginx/nginx.conf
|
||||||
COPY nginx/default.conf /etc/nginx/conf.d/default.conf
|
COPY nginx/default.conf /etc/nginx/conf.d/default.conf
|
||||||
|
|||||||
@ -5,8 +5,8 @@ pipeline {
|
|||||||
}
|
}
|
||||||
|
|
||||||
environment {
|
environment {
|
||||||
BUILD_IMAGE = "${sh(script:'echo -n halar-dev:page-console-$(date +%Y%m%dv%H%M%S)', returnStdout: true)}"
|
BUILD_IMAGE = "${sh(script:'echo -n likei-dev:page-console-$(date +%Y%m%dv%H%M%S)', returnStdout: true)}"
|
||||||
IMAGE_REP_TAG = "794038239327.dkr.ecr.ap-southeast-1.amazonaws.com/"
|
IMAGE_REP_TAG = "989328288674.dkr.ecr.ap-southeast-1.amazonaws.com/"
|
||||||
K8S_NAMESPACE = "local"
|
K8S_NAMESPACE = "local"
|
||||||
K8S_DEPLOYMENT = "console-page"
|
K8S_DEPLOYMENT = "console-page"
|
||||||
K8S_APP_LABEL = "console-page"
|
K8S_APP_LABEL = "console-page"
|
||||||
@ -25,7 +25,7 @@ pipeline {
|
|||||||
}
|
}
|
||||||
stage('Build image') {
|
stage('Build image') {
|
||||||
steps {
|
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} ."
|
sh "docker build -t ${BUILD_IMAGE} ."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user