Feature/acs 4653 migrate to gha (#1777)

* ACS-3841 Migrate to GHA (#1631)

(cherry picked from commit eb6b6a64a8)
This commit is contained in:
Antonio Felix
2023-02-24 16:52:22 +00:00
committed by Tom Page
parent a041ae928c
commit 28f0c42213
21 changed files with 757 additions and 469 deletions

18
scripts/ci/init.sh Normal file
View File

@@ -0,0 +1,18 @@
#!/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 .github/.ci.settings.xml "${HOME}/.m2/settings.xml"
find "${HOME}/.m2/repository/" -type d -name "*-SNAPSHOT*" | xargs -r -l rm -rf
# Docker Logins
echo "${DOCKERHUB_PASSWORD}" | docker login -u="${DOCKERHUB_USERNAME}" --password-stdin
echo "${QUAY_PASSWORD}" | docker login -u="${QUAY_USERNAME}" --password-stdin quay.io
popd
set +vex
echo "=========================== Finishing Init Script =========================="