maybe who knows
Some checks failed
gitea.arg.rip/_template-service/pipeline/head There was a failure building this commit
Some checks failed
gitea.arg.rip/_template-service/pipeline/head There was a failure building this commit
This commit is contained in:
parent
77f2d6682c
commit
5e0cd5e63a
12
$REPO_NAME.service
Normal file
12
$REPO_NAME.service
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=$REPO_DESCRIPTION
|
||||||
|
After=network-online.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
ExecStart=dist/$REPO_NAME
|
||||||
|
ExecReload=/bin/kill -s HUP $MAINPID
|
||||||
|
NoNewPrivileges=true
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
11
Jenkinsfile
vendored
Normal file
11
Jenkinsfile
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
pipeline {
|
||||||
|
agent any
|
||||||
|
stages {
|
||||||
|
stage (‘Deploy’) {
|
||||||
|
sh ‘ssh user@server rm -rf temp_deploy’
|
||||||
|
sh ‘ssh user@server mkdir -p temp_deploy’
|
||||||
|
sh ‘scp -r dist user@server:temp_deploy’
|
||||||
|
sh ‘ssh user@server “rm -rf dist/ && mv temp_deploy/ dist/”’
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user