File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,10 @@ cp $WORKSPACE/service/target/review-microservice*.jar review-microservice.jar
4040cp $WORKSPACE /service/src/main/resources/review-service.yaml review-service.yaml
4141
4242echo " copying dockercfg......"
43- aws s3 cp " s3://appirio-platform-$ENV /services/common/dockercfg" ~ /.dockercfg
43+ # aws s3 cp "s3://appirio-platform-$ENV/services/common/dockercfg" ~/.dockercfg
44+ DOCKER_USER=$( aws ssm get-parameter --name /$ENV_CONFIG /build/dockeruser --with-decryption --output text --query Parameter.Value)
45+ DOCKER_PASSWD=$( aws ssm get-parameter --name /$ENV_CONFIG /build/dockercfg --with-decryption --output text --query Parameter.Value)
46+ echo $DOCKER_PASSWD | docker login -u $DOCKER_USER --password-stdin
4447
4548echo " Building docker image $DOCKER_REPO /$IMAGE "
4649docker build -t $DOCKER_REPO /$IMAGE $DEPLOY_DIR
You can’t perform that action at this time.
0 commit comments