Nutzer Referenz Optional #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Dev Pipeline | |
on: | |
pull_request: | |
branches: [main] | |
push: | |
branches: [main] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.DEV_HOST }} | |
username: ${{ secrets.DEV_USERNAME }} | |
password: ${{ secrets.DEV_PASSWORD }} | |
port: 22 | |
script: | | |
cd ~/database | |
git reset --hard HEAD | |
git clean -f -d | |
git pull origin main | |
git status | |
bash build.sh |