Browse Source

正式构建版本 1.0.0

xjg 5 months ago
parent
commit
3afd5d4b48
4 changed files with 18 additions and 16 deletions
  1. 12 13
      .drone.yml
  2. 1 1
      Dockerfile
  3. 4 1
      README.md
  4. 1 1
      install.sh

+ 12 - 13
.drone.yml

@@ -22,19 +22,18 @@ steps:
       registry: sghharbor.com
       tags:
         - v1.0.0
-  - name: ssh commands
-    image: appleboy/drone-ssh:1.6.13
-    settings:
-      host: 47.56.16.206
-      username: root
-      password:
-        from_secret: ssh_password
-      port: 22
-      script:
-        #拉取镜像并重启 注意--需要提前在目标主机完成docker login
-        - if [ $(docker ps -a | grep authorization-service| wc -l) -ge 1 ];then docker stop authorization-service&& docker rm kube-service; fi
-        - docker pull sghharbor.com/sghblog-project/authorization-service:v1.0.0
-        - docker run --name authorization-service --restart=always -d -p 8091:8091 sghharbor.com/sghblog-project/authorization-service:v1.0.0
+#  - name: ssh commands
+#    image: appleboy/drone-ssh:1.6.13
+#    settings:
+#      host: 47.56.16.206
+#      username: root
+#      password:
+#        from_secret: ssh_password
+#      port: 22
+#      script:
+#        #拉取镜像并重启 注意--需要提前在目标主机完成docker login
+#        - if [ $(docker ps -a | grep authorization-service| wc -l) -ge 1 ];then docker stop authorization-service&& docker rm kube-service; fi
+#        - docker pull sghharbor.com/sghblog-project/authorization-service:v1.0.0
 volumes:
   - name: docker-ca
     host:

+ 1 - 1
Dockerfile

@@ -19,5 +19,5 @@ RUN apk add --no-cache curl
 # 设置时区为Asia/Shanghai
 ENV TZ=Asia/Shanghai
 
-EXPOSE 8091
+#EXPOSE 8091
 ENTRYPOINT ./server

+ 4 - 1
README.md

@@ -409,4 +409,7 @@ db.Where("name LIKE ?", "Employee:%").Find(&employeePermissions)
 ALTER DATABASE paas CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
 
 SHOW VARIABLES LIKE 'character_set_database';
-```
+
+```
+
+[//]: # (        - docker run --name authorization-service --restart=always -d -p 8091:8091 sghharbor.com/sghblog-project/authorization-service:v1.0.0)

+ 1 - 1
install.sh

@@ -19,5 +19,5 @@ export DATABASE_MYSQL_DATABASE=sghblog
 export REDIS_ENABLE=true
 export REDIS_URL=localhost:6379
 export REDIS_PASSWORD=xugang131500
-
+#redis-service.monitoring.svc.cluster.local:6379
 go run main.go