add digital ocean entrypoint

This commit is contained in:
Robert Kaussow 2019-09-23 08:31:53 +02:00
parent 6227279848
commit bc59aecbf5
1 changed files with 17 additions and 0 deletions

17
do-entrypoint.sh Executable file
View File

@ -0,0 +1,17 @@
#!/usr/bin/env bash
set -o pipefail
set -o errtrace
set -o nounset
set -o errexit
ANSIBLE_ROLES_PATH=${ANSIBLE_ROLES_PATH:-/drone/src}
if [ "${MOLECULE_CUSTOM_MODULES_REPO}" ]; then
mkdir ./library/
git clone "$MOLECULE_CUSTOM_MODULES_REPO" ./library/
fi
if [ "${MOLECULE_CUSTOM_FILTERS_REPO}" ]; then
mkdir -p ./plugins/filters/
git clone "$MOLECULE_CUSTOM_FILTERS_REPO" ./plugins/filters/
fi