Merge pull request #1491 from MTES-MCT/fix-ocsge-calcul #513
This file contains hidden or 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: Deploy to production Airflow | |
| on: | |
| push: | |
| branches: | |
| - "staging" | |
| jobs: | |
| deploy: | |
| name: Deploy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Git pull | |
| uses: appleboy/ssh-action@master | |
| with: | |
| host: ${{ secrets.AIRFLOW_SSH_HOST }} | |
| username: ${{ secrets.AIRFLOW_SSH_USER }} | |
| key: ${{ secrets.AIRFLOW_SSH_KEY }} | |
| port: ${{ secrets.AIRFLOW_SSH_PORT }} | |
| script: cd ~/sparte && git pull | |
| - name: Generate DBT docs | |
| uses: appleboy/ssh-action@master | |
| with: | |
| host: ${{ secrets.AIRFLOW_SSH_HOST }} | |
| username: ${{ secrets.AIRFLOW_SSH_USER }} | |
| key: ${{ secrets.AIRFLOW_SSH_KEY }} | |
| port: ${{ secrets.AIRFLOW_SSH_PORT }} | |
| script: cd ~/sparte/airflow/include/sql/sparte && dbt docs generate --static |