Skip to content

Commit

Permalink
HOTFIX on production
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanLouisLamezec committed Dec 3, 2024
1 parent a95c686 commit 8ce3250
Show file tree
Hide file tree
Showing 17 changed files with 78 additions and 58 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: angers_models_run
name: angers_models_run_production

on:
workflow_dispatch:
schedule:
- cron: '0 5 * * *'

env:
DBNAME: ${{ secrets.ANGERS_DBNAME_PROD }}
Expand All @@ -18,7 +16,7 @@ env:

jobs:
angers_models_run:
name: angers_models_run
name: angers_models_run_production
runs-on: ubuntu-latest
defaults:
run:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: casa_models_run
name: casa_models_run_production

on:
workflow_dispatch:
Expand All @@ -16,7 +16,7 @@ env:

jobs:
casa_models_run:
name: casa_models_run
name: casa_models_run_production
runs-on: ubuntu-latest
defaults:
run:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: cour_des_comptes_models_run
name: cour_des_comptes_models_run_production

on:
workflow_dispatch:
schedule:
- cron: '0 8 * * *'

env:
DBNAME: ${{ secrets.COUR_DES_COMPTES_DBNAME_PROD }}
Expand All @@ -18,7 +16,7 @@ env:

jobs:
cour_des_comptes_models_run:
name: cour_des_comptes_models_run
name: cour_des_comptes_models_run_production
runs-on: ubuntu-latest
defaults:
run:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: cea_models_run
name: cea_models_run_production

on:
workflow_dispatch:
schedule:
- cron: '30 5 * * *'

env:
DBNAME: ${{ secrets.CEA_DBNAME_PROD }}
Expand All @@ -18,7 +16,7 @@ env:

jobs:
cea_models_run:
name: cea_models_run
name: cea_models_run_production
runs-on: ubuntu-latest
defaults:
run:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: cese_models_run
name: cese_models_run_production

on:
workflow_dispatch:
schedule:
- cron: '0 8 * * *'

env:
DBNAME: ${{ secrets.CESE_DBNAME_PROD }}
Expand All @@ -18,7 +16,7 @@ env:

jobs:
cese_models_run:
name: cese_models_run
name: cese_models_run_production
runs-on: ubuntu-latest
defaults:
run:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: colombes_models_run
name: colombes_models_run_production

on:
workflow_dispatch:
Expand All @@ -16,7 +16,7 @@ env:

jobs:
colombes_models_run:
name: colombes_models_run
name: colombes_models_run_production
runs-on: ubuntu-latest
defaults:
run:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: grand_nancy_models_run
name: grand_nancy_models_run_production

on:
workflow_dispatch:
schedule:
- cron: '30 6 * * *'

env:
DBNAME: ${{ secrets.GRAND_NANCY_DBNAME_PROD }}
Expand All @@ -18,7 +16,7 @@ env:

jobs:
grand_nancy_models_run:
name: grand_nancy_models_run
name: grand_nancy_models_run_production
runs-on: ubuntu-latest
defaults:
run:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: lyon_models_run
name: lyon_models_run_production

on:
workflow_dispatch:
schedule:
- cron: '0 9 * * *'

env:
DBNAME: ${{ secrets.LYON_DBNAME_PROD }}
Expand All @@ -18,7 +16,7 @@ env:

jobs:
lyon_models_run:
name: lyon_models_run
name: lyon_models_run_production
runs-on: ubuntu-latest
defaults:
run:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: marseille_models_run
name: marseille_models_run_production

on:
workflow_dispatch:
schedule:
- cron: '30 7 * * *'

env:
DBNAME: ${{ secrets.MARSEILLE_DBNAME_PROD }}
Expand All @@ -18,7 +16,7 @@ env:

jobs:
marseille_models_run:
name: marseille_models_run
name: marseille_models_run_production
runs-on: ubuntu-latest
defaults:
run:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: meyzieu_models_run
name: meyzieu_models_run_production

on:
workflow_dispatch:
schedule:
- cron: '0 5 * * *'

env:
DBNAME: ${{ secrets.MEYZIEU_DBNAME_PROD }}
Expand All @@ -18,7 +16,7 @@ env:

jobs:
meyzieu_models_run:
name: meyzieu_models_run
name: meyzieu_models_run_production
runs-on: ubuntu-latest
defaults:
run:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: montpellier_models_run
name: montpellier_models_run_production

on:
workflow_dispatch:
Expand All @@ -16,7 +16,7 @@ env:

jobs:
montpellier_models_run:
name: montpellier_models_run
name: montpellier_models_run_production
runs-on: ubuntu-latest
defaults:
run:
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/real_deal_models_run_production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: real_deal_models_run_production

on:
workflow_dispatch:

env:
DBNAME: ${{ secrets.REAL_DEAL_DBNAME_PROD }}
HOST: ${{ secrets.HOST }}
PASSWORD: ${{ secrets.PASSWORD }}
PORT: ${{ secrets.PORT }}
TARGET_SCHEMA: ${{ secrets.SCHEMA_PROD }}
USER: ${{ secrets.USER }}
PARTICIPATION_HOST_NAME: ${{ secrets.REAL_DEAL_PARTICIPATION_HOST_NAME }}
WORKING_DIRECTORY: ./projects/real_deal


jobs:
real_deal_models_run:
name: real_deal_models_run_production
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ env.WORKING_DIRECTORY }}

steps:
- name: Check out
uses: actions/checkout@master

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12.x"
cache: 'pip'

- name: Install dependencies
run: |
pip install -r requirements.txt
dbt deps --target prod
- name: Run dbt models
run: dbt run --target prod

- name: Test dbt models
run: dbt test --target prod


Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: sytral_models_run
name: sytral_models_run_production

on:
workflow_dispatch:
schedule:
- cron: '30 7 * * *'

env:
DBNAME: ${{ secrets.SYTRAL_DBNAME_PROD }}
Expand All @@ -18,7 +16,7 @@ env:

jobs:
sytral_models_run:
name: sytral_models_run
name: sytral_models_run_production
runs-on: ubuntu-latest
defaults:
run:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: thionville_models_run
name: thionville_models_run_production

on:
workflow_dispatch:
schedule:
- cron: '30 7 * * *'

env:
DBNAME: ${{ secrets.THIONVILLE_DBNAME_PROD }}
Expand All @@ -18,7 +16,7 @@ env:

jobs:
thionville_models_run:
name: thionville_models_run
name: thionville_models_run_production
runs-on: ubuntu-latest
defaults:
run:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: toulouse_models_run
name: toulouse_models_run_production

on:
workflow_dispatch:
schedule:
- cron: '0 5 * * *'

env:
DBNAME: ${{ secrets.TOULOUSE_DBNAME_PROD }}
Expand All @@ -18,7 +16,7 @@ env:

jobs:
toulouse_models_run:
name: toulouse_models_run
name: toulouse_models_run_production
runs-on: ubuntu-latest
defaults:
run:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: tours_models_run
name: tours_models_run_production

on:
workflow_dispatch:
schedule:
- cron: '0 8 * * *'

env:
DBNAME: ${{ secrets.TOURS_DBNAME_PROD }}
Expand All @@ -18,7 +16,7 @@ env:

jobs:
tours_models_run:
name: tours_models_run
name: tours_models_run_production
runs-on: ubuntu-latest
defaults:
run:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: valbonne_models_run
name: valbonne_models_run_production

on:
workflow_dispatch:
schedule:
- cron: '0 5 * * *'

env:
DBNAME: ${{ secrets.valbonne_DBNAME_PROD }}
Expand All @@ -18,7 +16,7 @@ env:

jobs:
valbonne_models_run:
name: valbonne_models_run
name: valbonne_models_run_production
runs-on: ubuntu-latest
defaults:
run:
Expand Down

0 comments on commit 8ce3250

Please sign in to comment.