Commit d564cd47 authored by Ivan Mazhukin's avatar Ivan Mazhukin

epm ci: push results in branch named like epm version

parent e5965a28
Pipeline #16915 passed with stage
in 16 seconds
......@@ -3,6 +3,10 @@ set -euo pipefail
echo "=== Publishing IPFS DB ==="
# Get epm version (major.minor)
EPM_VERSION=$("$CI_PROJECT_DIR/bin/epm" --version --short | cut -d. -f1,2)
echo "EPM version: $EPM_VERSION"
# repo vars
IPFS_REPO_URL="https://gitlab.eterfund.ru/etersoft/epm-play-ci-results.git"
WORKDIR="ipfs-results"
......@@ -45,10 +49,9 @@ git commit -m "IPFS DB update (pipeline $CI_PIPELINE_ID)" || {
exit 0
}
# push via PAT
git remote set-url origin \
"https://builder-robot:${CI_PUSH_TOKEN}@gitlab.eterfund.ru/etersoft/epm-play-ci-results.git"
git push
# push to version branch
git remote set-url origin "https://builder-robot:${CI_PUSH_TOKEN}@gitlab.eterfund.ru/etersoft/epm-play-ci-results.git"
git checkout -b "${EPM_VERSION}"
git push origin "${EPM_VERSION}" 2>/dev/null
echo "=== IPFS DB and download log's published ==="
......@@ -3,6 +3,10 @@ set -euo pipefail
echo "Collecting CI results"
# Get epm version (major.minor)
EPM_VERSION=$("$CI_PROJECT_DIR/bin/epm" --version --short | cut -d. -f1,2)
echo "EPM version: $EPM_VERSION"
RESULTS_REPO_URL="https://gitlab.eterfund.ru/etersoft/epm-play-ci-results.git"
WORKDIR="results"
RESULTS_DIR="${CI_RESULTS_DIR:-epm-results}"
......@@ -40,6 +44,7 @@ git commit -m "CI results (${RESULTS_LABEL}): pipeline $CI_PIPELINE_ID" || {
exit 0
}
# push
# push to version branch
git remote set-url origin "https://builder-robot:${CI_PUSH_TOKEN}@gitlab.eterfund.ru/etersoft/epm-play-ci-results.git"
git push
git checkout -b "${EPM_VERSION}"
git push origin "${EPM_VERSION}" 2>/dev/null
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment