Browse Source

project: version 1.0.3

Yi 1 year ago
parent
commit
5a8920e020
2 changed files with 3 additions and 3 deletions
  1. 2 2
      .drone.yml
  2. 1 1
      config/load_config.go

+ 2 - 2
.drone.yml

@@ -20,7 +20,7 @@ steps:
         path: /etc/hosts
       - name: docker-ca
         path: /etc/docker
-      - name: dockersock
+      - name: docker-sock
         path: /var/run/docker.sock
     settings:
       #dockerfile: /drone/src/kpt-tmr-group/Dockerfile
@@ -44,6 +44,6 @@ volumes:
   - name: docker-ca
     host:
       path: /etc/docker
-  - name: dockersock
+  - name: docker-sock
     host:
       path: /var/run/docker.sock

+ 1 - 1
config/load_config.go

@@ -11,7 +11,7 @@ import (
 func Initialize(path string, cfgStruct interface{}) error {
 	workDir := os.Getenv("GO_WORK_DIR")
 	if workDir == "" {
-		workDir = "./"
+		workDir = "."
 	}
 	dir := fmt.Sprintf("%s/config/%s", workDir, path)
 	viper.SetConfigType("yaml")