diff --git a/Makefile b/Makefile index 1b189fe..e0e8185 100644 --- a/Makefile +++ b/Makefile @@ -29,6 +29,11 @@ list: $(DIRS): @echo "Building for $@" + # Export environment + @for kv in $$(vault kv get -format=json kv/service/packer/builder/env | jq -r '.data.data | to_entries[] | "\(.key)=\(.value)"'); do \ + export "$kv"; \ + done + # Check if on master branch @if [ "$(BRANCH)" = "master" ]; then \ echo "Current branch is $(BRANCH), checking latest timestamp in consul."; \