Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
open
cryptops
Commits
e95b5f64
Commit
e95b5f64
authored
Jan 04, 2018
by
Maarten de Waard
🤘🏻
Browse files
remove debug prints
parent
dbd47369
Pipeline
#3273
passed with stage
in 32 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
e95b5f64
...
...
@@ -27,13 +27,11 @@ deploy-master:
environment
:
name
:
master
url
:
$DOMAIN_NAME
#
only:
#
- '/^master$/'
only
:
-
'
/^master$/'
variables
:
SUBDOMAIN
:
'
DEFAULT'
script
:
-
pwd
-
ls -lahtr
-
apk update
-
apk add openssh-client rsync bash
-
./deploy.sh
deploy.sh
View file @
e95b5f64
#!/bin/bash
set
-v
# Run ssh-agent and add ssh key.
eval
$(
ssh-agent
-s
)
...
...
@@ -16,7 +14,5 @@ chmod 700 ~/.ssh
# Upload site.
echo
"FTP user:
${
FTP_USER
}
, Domain name:
${
DOMAIN_NAME
}
, Subdomain:
${
SUBDOMAIN
}
"
rsync
-r
--verbose
--compress
--delete
./docs/_build/html/
*
\
"
${
FTP_USER
}
@ftp.greenhost.nl:
${
DOMAIN_NAME
}
/
${
SUBDOMAIN
}
"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment