From 9939e395981f1e2a82eb40ae9a1d89e86538d781 Mon Sep 17 00:00:00 2001 From: Christopher Date: Thu, 10 Dec 2020 10:27:27 +0800 Subject: [PATCH] update server url --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ab38f55..62a7752 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,9 +16,9 @@ check: script: - apk add --no-cache --upgrade openssh-client bash curl coreutils - git config --global user.email $GIT_USER_EMAIL && git config --global user.name $GIT_USER_NAME - - mkdir -p ~/.ssh && echo "$GITLAB_SSH_PRIV_KEY" > ~/.ssh/id_rsa && ssh-keyscan -H git.yrzr.ocry.com > ~/.ssh/known_hosts && chmod -R 0600 ~/.ssh/ + - mkdir -p ~/.ssh && echo "$GITLAB_SSH_PRIV_KEY" > ~/.ssh/id_rsa && ssh-keyscan -H ${CI_SERVER_URL} > ~/.ssh/known_hosts && chmod -R 0600 ~/.ssh/ - git fetch --tags && ./check-version.sh && ./create-tags.sh - - git push --tags https://${GITLAB_USER_LOGIN}:${PERSONAL_ACCESS_TOKEN}@git.yrzr.ocry.com/docker/gitlab-ce-arm64.git + - git push --tags https://${GITLAB_USER_LOGIN}:${PERSONAL_ACCESS_TOKEN}@${CI_REPOSITORY_URL} build: image: arm64v8/docker:stable-git