forked from lewispeckover/consulator
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcircle.yml
12 lines (12 loc) · 940 Bytes
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
---
deployment:
release:
tag: /.*/
commands:
- "wget http://www.musl-libc.org/releases/musl-1.1.16.tar.gz && tar -xvf musl-1.1.16.tar.gz"
- "cd musl-1.1.16 && ./configure && make && sudo make install"
- "go get github.com/mitchellh/gox"
- "go get github.com/tcnksm/ghr"
- "CC=/usr/local/musl/bin/musl-gcc gox -osarch=\"linux/amd64\" -ldflags \"-linkmode external -extldflags '-static' -X 'main.Version=$(git describe --tags)' -X 'main.BuildDate=$(date -u '+%Y/%m/%d %H:%M:%S')'\" -output \"dist/consulator_$(git describe --tags)_{{.OS}}_{{.Arch}}\""
- "ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME --replace `git describe --tags` dist/"
- 'curl -H ''Content-Type: application/json'' --data "{\"source_type\": \"Tag\", \"source_name\": \"$(git describe --tags)\"}" -X POST https://registry.hub.docker.com/u/lewispeckover/consulator/trigger/$DOCKER_HUB/'