Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
app
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Abilash Yogalingam
app
Commits
98954085
Commit
98954085
authored
Apr 17, 2020
by
Abilash
Browse files
Options
Downloads
Patches
Plain Diff
Commit
parent
4da0d056
No related branches found
No related tags found
No related merge requests found
Pipeline
#81357
passed
Apr 17, 2020
Stage: build
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+31
-1
31 additions, 1 deletion
.gitlab-ci.yml
with
31 additions
and
1 deletion
.gitlab-ci.yml
+
31
−
1
View file @
98954085
image
:
node:latest
stages
:
-
build
# Jobs placed in build-stage will run first
-
test
# Jobs placed in test-stage will run after build-jobs
-
deploy
# Jobs placed in build-stage will run last after test-jobs
install
:
stage
:
build
script
:
-
npm install
# Keep node_modules-folder for the following stages:
artifacts
:
paths
:
-
node_modules
test
:
stage
:
test
# Job test will run in parallel with the job flow
script
:
-
npm test
flow
:
stage
:
test
# Job flow will run in parallel with the job test
script
:
-
npm install --global flow-bin
-
flow check
deploy
:
stage
:
deploy
script
:
-
mkdir ~/.ssh
-
echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
-
touch ~/.ssh/id_rsa
-
chmod 600 ~/.ssh/id_rsa
# Required permission by ssh
-
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
-
scp public/index.html nettoving8@torbjbla.nerdvana.tihlde.org:app/public
-
apt-get update
-
apt-get install --assume-yes rsync
-
rsync --archive --delete --exclude='.git' --exclude='node_modules' . nettoving8@torbjbla.nerdvana.tihlde.org:app
-
ssh nettoving8@torbjbla.nerdvana.tihlde.org systemctl --user restart nettprog-oving-8.service
only
:
-
master
\ No newline at end of file
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