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
c5a02e17
Commit
c5a02e17
authored
1 year ago
by
Ilya Rassadin
Browse files
Options
Downloads
Patches
Plain Diff
Enabled transfer of safe links
parent
41164aa0
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
.deploy_code_to_server.yml
+2
-2
2 additions, 2 deletions
.deploy_code_to_server.yml
with
2 additions
and
2 deletions
.deploy_code_to_server.yml
+
2
−
2
View file @
c5a02e17
.deploy_code_to_server
:
.deploy_code_to_server
:
extends
:
.before_deploy_code
extends
:
.before_deploy_code
script
:
script
:
-
rsync -avz --chown=$user:$group -e "ssh $SSH_OPTS" $CI_PROJECT_DIR/www/ root@${!PROJECT_SERVER}::www/${!PROJECT_SITE}/www/
-
rsync
--links --safe-links
-avz --chown=$user:$group -e "ssh $SSH_OPTS" $CI_PROJECT_DIR/www/ root@${!PROJECT_SERVER}::www/${!PROJECT_SITE}/www/
only
:
only
:
refs
:
refs
:
-
beta
-
beta
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
-
curl -O https://gitlab.cetera.ru/boilerplate/ci/raw/master/rsync-filter-std
-
curl -O https://gitlab.cetera.ru/boilerplate/ci/raw/master/rsync-filter-std
-
*set_rsync_filter
-
*set_rsync_filter
-
echo PROJECT_FILTER set to $PROJECT_FILTER
-
echo PROJECT_FILTER set to $PROJECT_FILTER
-
rsync -avz --chown=$user:$group -e "ssh $SSH_OPTS" --filter="merge rsync-filter-std" --filter="merge $PROJECT_FILTER" $RSYNC_PARAMS $CI_PROJECT_DIR/ root@${!PROJECT_SERVER}::www/${!PROJECT_SITE}/
-
rsync
--links --safe-links
-avz --chown=$user:$group -e "ssh $SSH_OPTS" --filter="merge rsync-filter-std" --filter="merge $PROJECT_FILTER" $RSYNC_PARAMS $CI_PROJECT_DIR/ root@${!PROJECT_SERVER}::www/${!PROJECT_SITE}/
-
if [ $PROJECT_CMS_TYPE = bitrix ]; then curl -o /tmp/.settings_extra.php https://gitlab.cetera.ru/boilerplate/ci/raw/master/.settings_extra.php; fi
-
if [ $PROJECT_CMS_TYPE = bitrix ]; then curl -o /tmp/.settings_extra.php https://gitlab.cetera.ru/boilerplate/ci/raw/master/.settings_extra.php; fi
-
if [ $PROJECT_CMS_TYPE = bitrix ]; then rsync -avz --chown=$user:$group -e "ssh $SSH_OPTS" /tmp/.settings_extra.php root@${!PROJECT_SERVER}::www/${!PROJECT_SITE}/www/bitrix/; fi
-
if [ $PROJECT_CMS_TYPE = bitrix ]; then rsync -avz --chown=$user:$group -e "ssh $SSH_OPTS" /tmp/.settings_extra.php root@${!PROJECT_SERVER}::www/${!PROJECT_SITE}/www/bitrix/; fi
only
:
only
:
...
...
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