Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-pre-data
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
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
ygopro-pre-data
Commits
3bf44846
Commit
3bf44846
authored
Sep 15, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto deploy
parent
fe6d08b1
Pipeline
#5603
passed with stages
in 1 minute and 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
0 deletions
+41
-0
.gitlab-ci.yml
.gitlab-ci.yml
+41
-0
No files found.
.gitlab-ci.yml
View file @
3bf44846
...
...
@@ -43,6 +43,18 @@ pack:
paths
:
-
dist
server
:
stage
:
pack
dependencies
:
[]
tags
:
-
linux
script
:
-
mv script expansions/
-
mv expansions dist
artifacts
:
paths
:
-
dist
deploy
:
stage
:
deploy
dependencies
:
...
...
@@ -63,3 +75,32 @@ deploy:
-
cd ..
only
:
-
tags
.deploy_to_server
:
stage
:
deploy
dependencies
:
-
server
tags
:
-
linux
script
:
-
apt update && apt -y install openssh-client rsync coreutils
-
mkdir ~/.ssh
-
chmod 700 ~/.ssh
-
ssh-keyscan $SERVER_HOST >> ~/.ssh/known_hosts
-
echo $NANAHIRA_SSH_KEY | base64 --decode > ~/.ssh/id_rsa
-
chmod 600 ~/.ssh/*
-
rsync -4cavzP --exclude=pics --delete ./dist/ $SERVER_USER@$SERVER_HOST:~/ygopro-pre-live
only
:
-
master
deploy_to_tiramisu
:
extends
:
.deploy_to_server
variables
:
SERVER_HOST
:
tiramisu.mycard.moe
SERVER_USER
:
mycard
deploy_to_koishi
:
extends
:
.deploy_to_server
variables
:
SERVER_HOST
:
koishi.momobako.com
SERVER_USER
:
nanahira
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