forked from fujiwara/lambroll
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (22 loc) · 812 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
GIT_VER := $(shell git describe --tags)
DATE := $(shell date +%Y-%m-%dT%H:%M:%S%z)
export GO111MODULE := on
.PHONY: test binary install clean dist
cmd/lambroll/lambroll: *.go cmd/lambroll/*.go go.mod go.sum
cd cmd/lambroll && go build -ldflags "-s -w -X main.Version=${GIT_VER}" -gcflags="-trimpath=${PWD}"
install: cmd/lambroll/lambroll
install cmd/lambroll/lambroll ${GOPATH}/bin
test:
go test -race ./...
clean:
rm -f cmd/lambroll/lambroll
rm -fr dist/
packages:
goreleaser build --skip-validate --rm-dist
packages-snapshot:
goreleaser build --skip-validate --rm-dist --snapshot
orb/publish:
circleci orb validate circleci-orb.yml
circleci orb publish circleci-orb.yml $(ORB_NAMESPACE)/lambroll@dev:latest
orb/promote:
circleci orb publish promote $(ORB_NAMESPACE)/lambroll@dev:latest patch