File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 28
28
name : " Publish Release on GitHub"
29
29
command : |
30
30
VERSION=$(echo ${CIRCLE_TAG} | sed 's/^v//')
31
- ZIP_NAME=cloud-key-rotator_${VERSION}_cloudfunction
31
+ ZIP_NAME=cloud-key-rotator_${VERSION}_cloudfunction.zip
32
32
zip -R ${ZIP_NAME} '*.go' 'go.mod'
33
- ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} ${CIRCLE_TAG} ${ZIP_NAME}.zip
33
+ ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} ${CIRCLE_TAG} ${ZIP_NAME}
34
34
docker_build_and_push :
35
35
<< : *defaults
36
36
48
48
command : |
49
49
export GO111MODULE=on
50
50
go mod download
51
- GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build
51
+ GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o cloud-key-rotator ./cmd
52
52
docker build -t ovotech/cloud-key-rotator:latest .
53
53
echo $DOCKER_PASS | docker login -u=$DOCKER_USER --password-stdin
54
54
docker push ovotech/cloud-key-rotator
You can’t perform that action at this time.
0 commit comments