Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ci
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
boilerplate
ci
Commits
49e731c0
Commit
49e731c0
authored
2 years ago
by
Makovkin Denis
Browse files
Options
Downloads
Patches
Plain Diff
Update before_script.yml
parent
f6399efd
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
before_script.yml
+3
-4
3 additions, 4 deletions
before_script.yml
with
3 additions
and
4 deletions
before_script.yml
+
3
−
4
View file @
49e731c0
# $CI_PROJECT_DIR - название проекта в GIT. Это переменная gitlab. Не меняйте её.
``
# $CI_PROJECT_DIR - название проекта в GIT. Это переменная gitlab. Не меняйте её.
# $CI_PROJECT_NAME - название проекта в GIT. Это переменная gitlab. Не меняйте её.
# $CI_PROJECT_NAME - название проекта в GIT. Это переменная gitlab. Не меняйте её.
# $LAYOUTS - это массив имен папок внутри каталога working, для которых мы собираем верстку и выкладываем в wireframes
# $LAYOUTS - это массив имен папок внутри каталога working, для которых мы собираем верстку и выкладываем в wireframes
before_script
:
before_script
:
...
@@ -39,9 +39,8 @@ variables:
...
@@ -39,9 +39,8 @@ variables:
-
export PROJECT_SITE="${CETERA_VAR_PREFIX}_PROJECT_SITE"
-
export PROJECT_SITE="${CETERA_VAR_PREFIX}_PROJECT_SITE"
-
export PROJECT_PORT="${CETERA_VAR_PREFIX}_PROJECT_PORT"
-
export PROJECT_PORT="${CETERA_VAR_PREFIX}_PROJECT_PORT"
-
echo $PROJECT_SERVER
-
echo $PROJECT_SERVER
-
echo ${#PROJECT_SERVER}
-
bash -c '[ ${PROJECT_SERVER} -le 5 ] && echo "PROJECT_SERVER not set" && exit 1'
# Warning !!!
-
bash -c '[ ${#PROJECT_SERVER} -le 5 ] && echo "PROJECT_SERVER not set" && exit 1'
# Warning !!!
-
bash -c '[ ${PROJECT_SITE} -le 5 ] && echo "PROJECT_SITE not set" && exit 1'
# Проверка на валидное значение, иначе могут потереть весь корень www
-
bash -c '[ ${#PROJECT_SITE} -le 5 ] && echo "PROJECT_SITE not set" && exit 1'
# Проверка на валидное значение, иначе могут потереть весь корень www
-
echo "$PRODUCTION_DEPLOY_KEY" | base64 -d > ~/.ssh/deploy.key
-
echo "$PRODUCTION_DEPLOY_KEY" | base64 -d > ~/.ssh/deploy.key
-
chmod 0400 ~/.ssh/deploy.key
-
chmod 0400 ~/.ssh/deploy.key
-
export SSH_OPTS="-o StrictHostKeyChecking=no -o IdentitiesOnly=yes -i $HOME/.ssh/deploy.key -p ${!PROJECT_PORT:-22}"
-
export SSH_OPTS="-o StrictHostKeyChecking=no -o IdentitiesOnly=yes -i $HOME/.ssh/deploy.key -p ${!PROJECT_PORT:-22}"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment