This commit is contained in:
Бурденко Алексей
2025-06-24 10:45:56 +03:00
parent 1ec2f3f4df
commit 0f07e8291e
3 changed files with 3 additions and 13 deletions
+1 -11
View File
@@ -26,19 +26,11 @@
ssh-keyscan "${stand}" >> ~/.ssh/known_hosts
done
- chmod 644 ~/.ssh/known_hosts
# Если получилось что-то пустое
- >
if [[ -z "$APPVERSION" ]]; then
APPVERSION="0.0.1"
fi
script:
- mkdir -p ${CI_PROJECT_DIR}/utils/
- cd ${CI_PROJECT_DIR}/utils/
- wget -q --no-check-certificate --output-document "deploy.sh" --header "PRIVATE-TOKEN:${GITLAB_TOKEN}" "https://git.vimpelcom.ru/api/v4/projects/9556/repository/files/ci%2Fdeploy%2Fdeploy.sh/raw"
- >
for stand in $STANDS; do
echo -e "Connect to ${stand}..." &&
scp -o StrictHostKeyChecking=no deploy.sh "dorootless@${stand}:~/deploy.sh" &&
scp -o StrictHostKeyChecking=no ci/deploy/deploy.sh "dorootless@${stand}:~/deploy.sh" &&
ssh "dorootless@${stand}" "export CONTAINER_REGISTRY=$CONTAINER_REGISTRY &&
export PRODUCT=$PRODUCT &&
export PRODUCT_VERSION=$PRODUCT_VERSION &&
@@ -50,5 +42,3 @@
needs:
- job: build-image-npm
optional: true
- job: build-image-go
optional: true