Makefile: add sops
This commit is contained in:
parent
1a9e368399
commit
64d3385291
16
Makefile
16
Makefile
|
@ -106,6 +106,7 @@ $(OUT_DIR)/terraform: $(FETCH_DIR)/terraform
|
||||||
-o /home/build/$@ \
|
-o /home/build/$@ \
|
||||||
")
|
")
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
$(OUT_DIR)/sops: $(FETCH_DIR)/sops
|
$(OUT_DIR)/sops: $(FETCH_DIR)/sops
|
||||||
$(call toolchain," \
|
$(call toolchain," \
|
||||||
cd $(FETCH_DIR)/sops && \
|
cd $(FETCH_DIR)/sops && \
|
||||||
|
@ -113,10 +114,25 @@ $(OUT_DIR)/sops: $(FETCH_DIR)/sops
|
||||||
export GOCACHE=/home/build/$(CACHE_DIR) && \
|
export GOCACHE=/home/build/$(CACHE_DIR) && \
|
||||||
export GOPATH=/home/build/$(CACHE_DIR) && \
|
export GOPATH=/home/build/$(CACHE_DIR) && \
|
||||||
export CGO_ENABLED=0 && \
|
export CGO_ENABLED=0 && \
|
||||||
|
=======
|
||||||
|
$(FETCH_DIR)/sops:
|
||||||
|
$(call git_clone,$@,$(SOPS_REPO),$(SOPS_REF))
|
||||||
|
|
||||||
|
$(OUT_DIR)/sops: $(FETCH_DIR)/sops
|
||||||
|
$(call toolchain," \
|
||||||
|
cd $(FETCH_DIR)/sops && \
|
||||||
|
export CGO_ENABLED=0 && \
|
||||||
|
export GOCACHE=/home/build/$(CACHE_DIR) && \
|
||||||
|
export GOPATH=/home/build/$(CACHE_DIR) && \
|
||||||
|
>>>>>>> c8a6313 (Makefile: add sops)
|
||||||
go build \
|
go build \
|
||||||
-v \
|
-v \
|
||||||
-trimpath \
|
-trimpath \
|
||||||
-ldflags='-w -extldflags=-static' \
|
-ldflags='-w -extldflags=-static' \
|
||||||
|
<<<<<<< HEAD
|
||||||
-o /home/build/$@ \
|
-o /home/build/$@ \
|
||||||
go.mozilla.org/sops/v3/cmd/sops \
|
go.mozilla.org/sops/v3/cmd/sops \
|
||||||
|
=======
|
||||||
|
-o /home/build/$@ $(SOPS_PKG) \
|
||||||
|
>>>>>>> c8a6313 (Makefile: add sops)
|
||||||
")
|
")
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
DEBIAN_HASH=f9e970d357981f7f5055f89365af980534ce742fc11480c51f929da83aa15980
|
DEBIAN_HASH=f9e970d357981f7f5055f89365af980534ce742fc11480c51f929da83aa15980
|
||||||
TERRAFORM_REF=db6079cfe269803701be9e1a89aeaf9a93714e86
|
TERRAFORM_REF=db6079cfe269803701be9e1a89aeaf9a93714e86
|
||||||
TERRAFORM_REPO=https://github.com/hashicorp/terraform
|
TERRAFORM_REPO=https://github.com/hashicorp/terraform
|
||||||
SOPS_REF=e1edc059487ddd14236dfe47267b05052f6c20b4
|
SOPS_REF=86f500de6102f5219e3fd0a25c718db01a7d39ed
|
||||||
SOPS_REPO=https://github.com/mozilla/sops
|
SOPS_REPO=https://github.com/mozilla/sops
|
||||||
|
SOPS_PKG=go.mozilla.org/sops/v3/cmd/sops
|
||||||
|
|
Loading…
Reference in New Issue