mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-06-16 17:55:15 +00:00
24 lines
784 B
Bash
24 lines
784 B
Bash
#!/usr/bin/env bash
|
|
echo "=========================== Starting Init Script ==========================="
|
|
PS4="\[\e[35m\]+ \[\e[m\]"
|
|
set -vex
|
|
pushd "$(dirname "${BASH_SOURCE[0]}")/../../"
|
|
|
|
# Maven Setup
|
|
mkdir -p "${HOME}/.m2" && cp -f .travis.settings.xml "${HOME}/.m2/settings.xml"
|
|
find "${HOME}/.m2/repository/" -type d -name "*-SNAPSHOT*" | xargs -r -l rm -rf
|
|
|
|
# Docker Logins
|
|
if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
|
|
echo "${DOCKERHUB_PASSWORD}" | docker login -u="${DOCKERHUB_USERNAME}" --password-stdin
|
|
echo "${QUAY_PASSWORD}" | docker login -u="${QUAY_USERNAME}" --password-stdin quay.io
|
|
fi
|
|
|
|
# not helpful in this script
|
|
# export HOST_IP=$(hostname -I | cut -f1 -d' ')
|
|
|
|
popd
|
|
set +vex
|
|
echo "=========================== Finishing Init Script =========================="
|
|
|