Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gitlab-ci
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
gitlab-ci
Commits
bb239238
Verified
Commit
bb239238
authored
6 months ago
by
Bartek Jaskulski
Browse files
Options
Downloads
Patches
Plain Diff
fix: use local variable for overwriting ssh keys
Signed-off-by:
Bart Jaskulski
<
bjaskulski@protonmail.com
>
parent
877e87bd
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
includes/deploy/demo.yml
+6
-4
6 additions, 4 deletions
includes/deploy/demo.yml
with
6 additions
and
4 deletions
includes/deploy/demo.yml
+
6
−
4
View file @
bb239238
deploy:demo
:
image
:
gitlab.wpdesk.dev:5050/wpdesk/docker-tests/amazon-svn-deploy:24.09
variables
:
SSH_KEY
:
$GLOBAL_SSH_KEY
environment
:
name
:
$DEPLOY_SERVER
url
:
https://$DEPLOY_SERVER
...
...
@@ -43,13 +45,13 @@ deploy:demo:
variables
:
SSH_DSN
:
wlgmnfabmq@s125.cyber-folks.pl:/home/wlgmnfabmq/domains/demo.octolize.com/public_html/wp-content/plugins
SSH_PORT
:
222
GLOBAL_SSH_PRIV
_KEY
:
$DEMO_FS_SSH_KEY_FILE
SSH
_KEY
:
$DEMO_FS_SSH_KEY_FILE
## stage.demo.octolize.com
-
if
:
$DEPLOY_SERVER == 'stage.demo.octolize.com'
variables
:
SSH_DSN
:
wlgmnfabmq@s125.cyber-folks.pl:/home/wlgmnfabmq/domains/stage.demo.octolize.com/public_html/wp-content/plugins
SSH_PORT
:
222
GLOBAL_SSH_PRIV
_KEY
:
$DEMO_FS_SSH_KEY_FILE
SSH
_KEY
:
$DEMO_FS_SSH_KEY_FILE
## demo.flexibleinvoices.com
-
if
:
$DEPLOY_SERVER == 'demo.flexibleinvoices.com'
variables
:
...
...
@@ -57,8 +59,8 @@ deploy:demo:
SSH_PORT
:
40022
before_script
:
-
eval "$(ssh-agent -s)"
-
chmod 600 "$
GLOBAL_SSH_PRIV
_KEY"
-
ssh-add "$
GLOBAL_SSH_PRIV
_KEY"
-
chmod 600 "$
SSH
_KEY"
-
ssh-add "$
SSH
_KEY"
-
echo "$SSH_KNOWN_HOSTS" | tr -d '\r' > ~/.ssh/known_hosts
script
:
-
rsync -rlDe "ssh -p $SSH_PORT" --delete "$CI_PROJECT_DIR/release/$CI_PROJECT_NAME" $SSH_DSN
...
...
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