Commit ec3ccf41 authored by Alexander (asac) Sack's avatar Alexander (asac) Sack

Update .gitlab-ci.yml

parent bac25806
Pipeline #105060584 failed
......@@ -20,8 +20,8 @@ upgrade:
script:
# download source code
- mkdir work; cd work
- REPO_MIRROR=; if [ -e "/srv/mirror/repo-mirror" ]; then REPO_MIRROR="--reference=/srv/mirror/repo-mirror"; fi
- repo init $REPO_MIRROR -u $CI_PROJECT_URL
- REPO_MIRROR=; if [ -e "/srv/mirror/repo-mirror/.repo" ]; then REPO_MIRROR="--reference=/srv/mirror/repo-mirror/.repo"; fi
- echo mirror: "$REPO_MIRROR"; repo init $REPO_MIRROR -u $CI_PROJECT_URL
- until repo sync -j10; do echo "Sync failed, retrying..."; done
# download manifest project
- git clone -b $CI_COMMIT_REF_NAME --single-branch $CI_PROJECT_URL
......@@ -87,8 +87,8 @@ deployment:
- if [ "$CI_COMMIT_REF_NAME" != "master" ] && [ -z "$CI_COMMIT_TAG" ]; then DEPLOY="false"; fi
# download source code
- mkdir work; cd work;
- REPO_MIRROR=; if [ -e "/srv/mirror/repo-mirror" ]; then REPO_MIRROR="--reference=/srv/mirror/repo-mirror"; fi;
- repo init $REPO_MIRROR -u $CI_PROJECT_URL -m release.xml; cp ../release.xml .repo/manifests/release.xml
- REPO_MIRROR=; if [ -e "/srv/mirror/repo-mirror/.repo" ]; then REPO_MIRROR="--reference=/srv/mirror/repo-mirror/.repo"; fi;
- echo Using Mirror? "$REPO_MIRROR"; repo init $REPO_MIRROR -u $CI_PROJECT_URL -m release.xml; cp ../release.xml .repo/manifests/release.xml
- until repo sync -j10; do echo "Sync failed, retrying..."; done
# download device from pantahub
- TOKEN=`http --ignore-stdin POST https://api.pantahub.com/auth/login username=$PHUSER password=$PHPASS | jq -r .token`
......
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