Compare commits
1 Commits
54e8412d92
...
b5f7e9cdd5
| Author | SHA1 | Date | |
|---|---|---|---|
| b5f7e9cdd5 |
5
Makefile
5
Makefile
@ -43,10 +43,6 @@ $(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."; \
|
||||
@ -87,6 +83,7 @@ $(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