Initial commit

This commit is contained in:
2021-06-29 00:15:47 +01:00
commit 8dd7877c87
8 changed files with 87 additions and 0 deletions

23
.github/workflows/deploy.yaml vendored Normal file
View File

@@ -0,0 +1,23 @@
name: Deploy
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy
environment: production
runs-on: ubuntu-latest
steps:
- name: Deploy to target system
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.TARGET_HOST }}
username: ${{ secrets.DEPLOYMENT_USER }}
key: ${{ secrets.DEPLOYMENT_SSH_KEY }}
port: 22
script: |
cd ~/src/dimension-nikdoof
sudo git config pull.ff only
sudo git reset --hard
sudo git pull