mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-08 08:05:47 +02:00
Add deployment workflow
This commit is contained in:
parent
6906ec13ed
commit
01b4b23fc9
2 changed files with 34 additions and 0 deletions
6
.editorconfig
Normal file
6
.editorconfig
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
root = true
|
||||
|
||||
[{*.yml, *.yaml}]
|
||||
indent_size = 2
|
||||
indent_style = space
|
||||
max_line_length=80
|
||||
28
.github/workflows/deploy.yml
vendored
Normal file
28
.github/workflows/deploy.yml
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
name: Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Deploy to server
|
||||
uses: appleboy/ssh-action@master
|
||||
with:
|
||||
host: ${{ secrets.DEPLOY_HOST }}
|
||||
port: ${{ secrets.DEPLOY_PORT }}
|
||||
key: ${{ secrets.DEPLOY_PRIVATE_KEY }}
|
||||
script: "cd didier; git pull"
|
||||
username: pi
|
||||
- name: Restart Didier
|
||||
uses: appleboy/ssh-action@master
|
||||
with:
|
||||
host: ${{ secrets.DEPLOY_HOST }}
|
||||
port: ${{ secrets.DEPLOY_PORT }}
|
||||
key: ${{ secrets.DEPLOY_PRIVATE_KEY }}
|
||||
script: "sudo service didier restart"
|
||||
username: pi
|
||||
Loading…
Add table
Add a link
Reference in a new issue