Feick 5 лет назад
Родитель
Сommit
5e0b1db11a
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      deploy.sh
  2. 1 1
      src/main/java/com/yaoxiang/diagnosis/config/MinioConfig.java

+ 1 - 1
deploy.sh

@@ -1,7 +1,7 @@
 date=`date +%Y%m%d_%H%M%S`
 cd /home/jenkins/workspace/diagnosis
 docker build -t feick/diagnosis:$date .
-echo "current tag is $date"
+echo "backend current tag is $date"
 sed -i "s/\${date}/$(echo $date)/g" deployment.yaml
 kubectl apply -f deployment.yaml
 sed -i "s/\${date}/$(echo $date)/g" deployment-prod.yaml

+ 1 - 1
src/main/java/com/yaoxiang/diagnosis/config/MinioConfig.java

@@ -65,7 +65,7 @@ public class MinioConfig {
 
     @Bean
     MinioClient minioClient(MinioProperties properties) throws Exception {
-        logger.info("init MinioClient,url is {} , accessKey is {} , secretKey is {}", properties.getUrl(), properties.getAccessKey(), properties.getSecretKey());
+        logger.info("init MinioClient,url is {} , accessKey is {} , secretKey is ***", properties.getUrl(), properties.getAccessKey());
         MinioClient client = null;
         if (properties.isSecure()) {
              client = new MinioClient(properties.getUrl(), properties.getSecurePort(), properties.getAccessKey(), properties.getSecretKey(), null, true, okHttpClient());