diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..1307f18 --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -0,0 +1,21 @@ +name: Deploy on production + +on: + push: + branches: + - main +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Deploy by SSH to production environment + uses: appleboy/ssh-action@master + with: + host: ${{ secrets.PRODUCTION_SSH_HOST }} + username: ${{ secrets.PRODUCTION_SSH_USERNAME }} + password: ${{ secrets.PRODUCTION_SSH_PASSWORD }} + port: ${{ secrets.PRODUCTION_SSH_PORT }} + script: | + cd /home/mishealth/BD-Core-FHIR-IG + git pull origin main + bash _genonce.sh \ No newline at end of file