mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
allow env variable override of creds file
This is important because there is an integration test, test_git, that require an ssh key to clone a privileged github repo.
This commit is contained in:
@@ -6,7 +6,7 @@ ifndef CLOUD_RESOURCE_PREFIX
|
||||
CLOUD_RESOURCE_PREFIX := $(shell python -c "import string,random; print 'ansible-testing-' + ''.join(random.choice(string.ascii_letters + string.digits) for _ in xrange(8));")
|
||||
endif
|
||||
|
||||
CREDENTIALS_FILE = credentials.yml
|
||||
CREDENTIALS_FILE ?= credentials.yml
|
||||
# If credentials.yml exists, use it
|
||||
ifneq ("$(wildcard $(CREDENTIALS_FILE))","")
|
||||
CREDENTIALS_ARG = -e @$(CREDENTIALS_FILE)
|
||||
|
||||
Reference in New Issue
Block a user