diff --git a/.rancher-pipeline.yml b/.rancher-pipeline.yml index 7fcfa22..f3d867d 100644 --- a/.rancher-pipeline.yml +++ b/.rancher-pipeline.yml @@ -3,12 +3,9 @@ stages: steps: - runScriptConfig: image: golang:1.11 - shellScript: |- - mkdir -p /go/src/github.com/rancher - ln -s `pwd` /go/src/github.com/rancher/pipeline-example-go - cd /go/src/github.com/rancher/pipeline-example-go - go build -o bin/hello-server - go test -cover + shellScript: "mkdir -p /go/src/github.com/rancher\nln -s `pwd` /go/src/github.com/rancher/pipeline-example-go\ncd + /go/src/github.com/rancher/pipeline-example-go\ngo build -o bin/hello-server + \ngo test -cover" - name: Publish steps: - publishImageConfig: @@ -18,4 +15,6 @@ stages: - name: Deploy steps: - applyYamlConfig: - path: ./deployment.yaml \ No newline at end of file + path: ./deployment.yaml +timeout: 20 +notification: {} diff --git a/deployment.yaml b/deployment.yaml index 562e956..768144e 100644 --- a/deployment.yaml +++ b/deployment.yaml @@ -51,7 +51,7 @@ metadata: allow.http: "false" spec: rules: - - host: go.rancher.dev-ops-ninja.com + - host: go.rancher.com http: paths: - path: / diff --git a/main.go b/main.go index 3d5077d..b5c6e04 100644 --- a/main.go +++ b/main.go @@ -6,7 +6,7 @@ import ( "log" ) -const webContent = "dev-ops-ninja:v99" +const webContent = "dev-ops-ninja:vXPT40" func main() { http.HandleFunc("/", helloHandler)