Compare commits
1 Commits
8d89f67879
...
7a1d25f3b6
| Author | SHA1 | Date | |
|---|---|---|---|
| 7a1d25f3b6 |
4
Makefile
4
Makefile
@ -40,9 +40,11 @@ $(DIRS):
|
||||
|
||||
# Export environment
|
||||
export VAULT_ADDR=https://vault.query.consul:8200
|
||||
@export VAULT_TOKEN=$$(vault write -field=token auth/approle/login role_id=$$VAULT_ROLEID) && \
|
||||
export VAULT_TOKEN=$$(vault write -field=token auth/approle/login role_id=$$VAULT_ROLEID) && \
|
||||
eval $$(vault kv get -format=json kv/service/packer/builder/env | jq -r '.data.data | to_entries[] | "export \(.key)=\(.value)"')
|
||||
|
||||
@echo "Environment retrieved for $@"
|
||||
|
||||
# Check if on master branch
|
||||
@if [ "$(GIT_BRANCH)" = "master" ]; then \
|
||||
echo "Current branch is $(GIT_BRANCH), checking latest timestamp in consul."; \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user