Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ARSnova
arsnova-click-v2-backend
Commits
6819ba5c
Commit
6819ba5c
authored
Aug 31, 2019
by
Christopher Mark Fullarton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds deploy step for the beta server
parent
c6c3e347
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
.gitlab-ci.yml
.gitlab-ci.yml
+18
-1
No files found.
.gitlab-ci.yml
View file @
6819ba5c
...
...
@@ -3,6 +3,7 @@ stages:
-
test
-
build
-
deploy
-
deploy-beta
cache
:
key
:
${CI_COMMIT_REF_SLUG}
...
...
@@ -37,6 +38,7 @@ build:
stage
:
build
only
:
-
master
-
beta
tags
:
-
nodejs
script
:
...
...
@@ -66,7 +68,22 @@ deploy:
-
ssh-keyscan "$STAGING_BACKEND_URL" >> ~/.ssh/known_hosts
-
ssh-add <(echo "$STAGING_SSH_PRIVATE_KEY")
-
rsync -rltgoDqv --delete -e "ssh" dist/* "$STAGING_BACKEND_SSH_URL"
-
rsync -rltgoDqv --delete -e "ssh" dist/* "$BETA_BACKEND_SSH_URL"
-
ssh $NEW_PRODUCTION_SSH 'touch /home/arsnova/arsnova.click-v2/backend/deploy.touch'
deploy-beta
:
stage
:
deploy-beta
only
:
-
beta
tags
:
-
rsync
dependencies
:
-
build
script
:
-
chmod -R a+rX,ug+w .
-
eval $(ssh-agent -s)
-
mkdir ~/.ssh
-
ssh-keyscan "$STAGING_BACKEND_URL" >> ~/.ssh/known_hosts
-
ssh-add <(echo "$STAGING_SSH_PRIVATE_KEY")
-
rsync -rltgoDqv --delete -e "ssh" dist/* "$BETA_BACKEND_SSH_URL"
-
ssh $NEW_PRODUCTION_SSH 'touch /home/arsnova/arsnova.click-v2-beta/backend/deploy.touch'
Write
Preview
Markdown
is supported
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