Compare commits
1 Commits
b5f7e9cdd5
...
54e8412d92
| Author | SHA1 | Date | |
|---|---|---|---|
| 54e8412d92 |
5
Makefile
5
Makefile
@ -43,6 +43,10 @@ $(DIRS):
|
||||
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 $@"
|
||||
env | grep -i CONSUL
|
||||
env | grep -i VAULT
|
||||
|
||||
# Check if on master branch
|
||||
if [ "$(GIT_BRANCH)" = "master" ]; then \
|
||||
echo "Current branch is $(GIT_BRANCH), checking latest timestamp in consul."; \
|
||||
@ -83,7 +87,6 @@ $(DIRS):
|
||||
echo "Starting packer init for $@" && \
|
||||
pwd
|
||||
ls -lha
|
||||
env
|
||||
packer init . && \
|
||||
echo "Starting packer build for $@" && \
|
||||
packer build . )
|
||||
|
||||
Loading…
Reference in New Issue
Block a user