maybe who knows
Some checks failed
gitea.arg.rip/_template-service/pipeline/head There was a failure building this commit

This commit is contained in:
adam 2024-11-16 22:19:51 -05:00
parent 77f2d6682c
commit 5e0cd5e63a
3 changed files with 25 additions and 1 deletions

12
$REPO_NAME.service Normal file
View 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
View 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/”’
}
}
}

View File

@ -1,2 +1,3 @@
# _template-service
# $REPO_NAME
$REPO_DESCRIPTION