feat: source environment vars from vault

- source all environment vars from vault
This commit is contained in:
Ben Vincent 2025-01-11 21:37:09 +11:00
parent ff19688dd2
commit a6868f8037

View File

@ -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."; \