Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Website
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Operate
Environments
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
subugoe
ahiqar
Website
Commits
8093aa63
Commit
8093aa63
authored
3 years ago
by
Mathias Goebel
Browse files
Options
Downloads
Plain Diff
Merge commit 'stash' into develop
parents
35bd8169
821463c9
No related branches found
No related tags found
1 merge request
!36
Release
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+21
-0
21 additions, 0 deletions
.gitlab-ci.yml
with
21 additions
and
0 deletions
.gitlab-ci.yml
+
21
−
0
View file @
8093aa63
...
...
@@ -33,6 +33,14 @@
paths
:
-
public/
.ssh-config
:
&ssh
-
which ssh-agent
-
eval $(ssh-agent -s)
-
echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
-
mkdir -p ~/.ssh
-
chmod 700 ~/.ssh
-
alias scp="scp -o 'StrictHostKeyChecking no'"
-
alias ssh="ssh -o 'StrictHostKeyChecking no' $SSH_USER@$SSH_IP"
cache
:
paths
:
...
...
@@ -55,6 +63,7 @@ variables:
stages
:
-
pre-build
-
build
-
deploy_to_server
-
pages
-
preserve-pages
-
remove_unused_envs
...
...
@@ -96,6 +105,18 @@ build_page-main-backend:
VUE_APP_PUBLIC_PATH
:
"
${BASE_BACKEND}"
<<
:
*build-defaults
deploy-dev
:
stage
:
deploy-to-server
image
:
rsamban/scp-resource:latest
only
:
-
develop
dependencies
:
-
build_page-develop-backend
script
:
-
*ssh
# remove the old version
-
ssh "rm -rf ~/$CI_COMMIT_REF_NAME/frontend/website/*"
-
scp -r public/* $SSH_USER@$SSH_IP:~/$CI_COMMIT_REF_NAME/frontend/website/
# this stage creates a new environment for the current branch.
pages
:
...
...
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