Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Neos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Neos
Commits
44a41beb
Commit
44a41beb
authored
Feb 18, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix gitlab-ci
parent
80120fd7
Pipeline
#20252
canceled with stages
in 47 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
.gitlab-ci.yml
.gitlab-ci.yml
+15
-2
No files found.
.gitlab-ci.yml
View file @
44a41beb
...
@@ -44,6 +44,9 @@ npm_build:
...
@@ -44,6 +44,9 @@ npm_build:
tags
:
tags
:
-
linux
-
linux
script
:
npm run build
script
:
npm run build
artifacts
:
paths
:
-
dist
deploy
:
deploy
:
stage
:
deploy
stage
:
deploy
...
@@ -52,6 +55,16 @@ deploy:
...
@@ -52,6 +55,16 @@ deploy:
extends
:
npm_build
extends
:
npm_build
script
:
script
:
-
sudo apt-get install rsync
-
sudo apt-get install rsync
-
rsync -av -e 'ssh -p 22 -i ~/.ssh/id_ed25519' dist/ 'kirayamato@8.142.104.5:${NEOS_DEPLOY_PATH}'
-
rsync -a --progress --human-readable dist/ 'kirayamato@8.142.104.5:${NEOS_DEPLOY_PATH}'
-
rsync -av -e 'ssh -p 22 -i ~/.ssh/id_ed25519' assets/ 'kirayamato@8.142.104.5:${NEOS_DEPLOY_PATH}/assets'
-
rsync -a --progress --human-readable assets/ 'kirayamato@8.142.104.5:${NEOS_DEPLOY_PATH}/assets'
before_script
:
-
'
command
-v
ssh-agent
>/dev/null
||
(
apt-get
update
-y
&&
apt-get
install
openssh-client
-y
)'
-
eval $(ssh-agent -s)
-
ssh-add <(echo "$NEOS_SSH_PRIVATE_KEY" | base64 -d)
-
mkdir -p ~/.ssh
-
'
[[
-f
/.dockerenv
]]
&&
echo
-e
"Host
*\n\tStrictHostKeyChecking
no\n\n"
>
~/.ssh/config'
-
chmod 700 ~/.ssh
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