-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
21 lines (16 loc) · 803 Bytes
/
Makefile
File metadata and controls
21 lines (16 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
default: build
guard-%:
@ if [ "${${*}}" = "" ]; then \
echo "Environment variable $* not set"; \
exit 1; \
fi
test:
docker run -v $(CURDIR):/src centurylink/golang-tester
build:
docker run -v $(CURDIR):/src centurylink/golang-builder
release-build:
docker run -v $(CURDIR):/src -e CGO_ENABLED=true -e LDFLAGS='-extldflags "-static"' -e COMPRESS_BINARY=true centurylink/golang-builder
release: guard-GITHUB_TOKEN guard-VERSION release-build
git tag v$(VERSION) && git push origin v$(VERSION)
docker run -e GITHUB_TOKEN=$(GITHUB_TOKEN) jimdo/github-release release --user Jimdo --repo asg-ebs --tag v$(VERSION)
docker run -e GITHUB_TOKEN=$(GITHUB_TOKEN) -v $(CURDIR):/src -w /src jimdo/github-release upload --user Jimdo --repo asg-ebs --tag v$(VERSION) --name "asg-ebs" --file asg-ebs