fix automated releases broken due to workspace location misconfig after go mod migration
This commit is contained in:
		
							parent
							
								
									950bd23d86
								
							
						
					
					
						commit
						59b254ee45
					
				|  | @ -7,6 +7,7 @@ jobs: | ||||||
|       - image: circleci/golang:1.12.4 |       - image: circleci/golang:1.12.4 | ||||||
|     environment: |     environment: | ||||||
|       GOPATH: /go |       GOPATH: /go | ||||||
|  |     working_directory: /home/circleci/workspace/helmfile | ||||||
|     steps: |     steps: | ||||||
|       - checkout |       - checkout | ||||||
|       - restore_cache: |       - restore_cache: | ||||||
|  | @ -29,6 +30,7 @@ jobs: | ||||||
|       GOPATH: /go |       GOPATH: /go | ||||||
|     docker: |     docker: | ||||||
|       - image: circleci/golang:1.12.4 |       - image: circleci/golang:1.12.4 | ||||||
|  |     working_directory: /home/circleci/workspace/helmfile | ||||||
|     steps: |     steps: | ||||||
|       - checkout |       - checkout | ||||||
|       - restore_cache: |       - restore_cache: | ||||||
|  | @ -89,16 +91,21 @@ jobs: | ||||||
| 
 | 
 | ||||||
|   release: |   release: | ||||||
|     docker: |     docker: | ||||||
|       - image: circleci/golang:1.12.1 |       - image: circleci/golang:1.12.4 | ||||||
|     working_directory: /go/src/github.com/roboll/helmfile |     working_directory: /home/circleci/workspace/helmfile | ||||||
|     steps: |     steps: | ||||||
|     - checkout |     - checkout | ||||||
|  |     - restore_cache: | ||||||
|  |         keys: | ||||||
|  |         - go-mod-cache-v1-{{ checksum "./go.sum" }} | ||||||
|  |         - go-mod-cache-v1- | ||||||
|     - setup_remote_docker |     - setup_remote_docker | ||||||
|     - run: |     - run: | ||||||
|         command: | |         command: | | ||||||
|           docker login -u="$DOCKER_USER" -p="$DOCKER_PASS" quay.io |           docker login -u="$DOCKER_USER" -p="$DOCKER_PASS" quay.io | ||||||
|           make tools |           make tools | ||||||
|           BUILD_URL="$CIRCLE_BUILD_URL" make push release |           go mod vendor | ||||||
|  |           ORG=roboll BUILD_URL="$CIRCLE_BUILD_URL" make push release | ||||||
| 
 | 
 | ||||||
| workflows: | workflows: | ||||||
|   version: 2 |   version: 2 | ||||||
|  |  | ||||||
|  | @ -1,8 +1,8 @@ | ||||||
| FROM golang:1.12.4-alpine3.9 as builder | FROM golang:1.12.4-alpine3.9 as builder | ||||||
| 
 | 
 | ||||||
| RUN apk add --no-cache make git | RUN apk add --no-cache make git | ||||||
| WORKDIR /go/src/github.com/roboll/helmfile/ | WORKDIR /workspace/helmfile | ||||||
| COPY . /go/src/github.com/roboll/helmfile/ | COPY . /workspace/helmfile | ||||||
| RUN make static-linux | RUN make static-linux | ||||||
| 
 | 
 | ||||||
| # ----------------------------------------------------------------------------- | # ----------------------------------------------------------------------------- | ||||||
|  | @ -24,6 +24,6 @@ RUN mkdir -p "$(helm home)/plugins" | ||||||
| RUN helm plugin install https://github.com/databus23/helm-diff && \ | RUN helm plugin install https://github.com/databus23/helm-diff && \ | ||||||
|     helm plugin install https://github.com/futuresimple/helm-secrets |     helm plugin install https://github.com/futuresimple/helm-secrets | ||||||
| 
 | 
 | ||||||
| COPY --from=builder /go/src/github.com/roboll/helmfile/dist/helmfile_linux_amd64 /usr/local/bin/helmfile | COPY --from=builder /workspace/helmfile/dist/helmfile_linux_amd64 /usr/local/bin/helmfile | ||||||
| 
 | 
 | ||||||
| CMD ["/usr/local/bin/helmfile"] | CMD ["/usr/local/bin/helmfile"] | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue