Robert Kaussow
01298dcb90
Some checks reported errors
continuous-integration/drone/push Build was killed
27 lines
690 B
Bash
Executable File
27 lines
690 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -o pipefail
|
|
set -o errtrace
|
|
set -o nounset
|
|
set -o errexit
|
|
|
|
if [ "$GCE_SSH_KEY" ]; then
|
|
echo "$GCE_SSH_KEY" > $HOME/.ssh/google_compute_engine
|
|
chmod 600 $HOME/.ssh/google_compute_engine
|
|
fi
|
|
|
|
if [ "$GCE_CREDENTIALS_JSON" ] && [ "$GCE_CREDENTIALS_FILE" ]; then
|
|
DIR=$(dirname "$GCE_CREDENTIALS_FILE")
|
|
mkdir -p "${DIR}"
|
|
echo "$GCE_CREDENTIALS_JSON" > "$GCE_CREDENTIALS_FILE"
|
|
fi
|
|
|
|
if [ "${MOLECULE_CUSTOM_MODULES_REPO}" ]; then
|
|
mkdir ./library/
|
|
git clone "$MOLECULE_CUSTOM_MODULES_REPO" ./library/
|
|
fi
|
|
|
|
if [ "${MOLECULE_CUSTOM_LIBRARY_REPO}" ]; then
|
|
mkdir ./plugins/filters/
|
|
git clone "$MOLECULE_CUSTOM_LIBRARY_REPO" ./plugins/filters/
|
|
fi
|