-
-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (22 loc) · 875 Bytes
/
Copy pathMakefile
File metadata and controls
31 lines (22 loc) · 875 Bytes
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
31
.PHONY: test binary install clean dist
# tfstate-lookup build tags: exclude GCS and AzureRM remote backends.
# lambroll only supports the S3 and Terraform Cloud (remote) backends.
GO_BUILD_TAGS := no_gcs,no_azurerm
cmd/lambroll/lambroll: *.go cmd/lambroll/*.go go.mod go.sum
cd cmd/lambroll && go build -tags "$(GO_BUILD_TAGS)" -ldflags "-s -w" -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 --clean
packages-snapshot:
goreleaser build --skip-validate --clean --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