Skip to content

Gestion des nb de connections à la base de données (#1089) #5

Gestion des nb de connections à la base de données (#1089)

Gestion des nb de connections à la base de données (#1089) #5

Workflow file for this run

name: "[🔴 Prod] Déploiement continu"
on:
push:
tags:
- v*
env:
S3_HOST: https://cellar-c2.services.clever-cloud.com
FOLDER_SOURCE: dags
S3_BUCKET_DESTINATION: s3://prod-dags/
AWS_ACCESS_KEY_ID: ${{ secrets.PROD_S3_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.PROD_S3_SECRET_KEY }}
defaults:
run:
shell: bash
jobs:
run_tests:
uses: ./.github/workflows/run_tests.yml
create-release:
name: Create GitHub Release
needs: [run_tests]
runs-on: "ubuntu-latest"
steps:
- uses: "marvinpinto/[email protected]"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
deploy:
name: Deploy on Scalingo
needs: [run_tests]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: kolok/deploy-to-scalingo@v1
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
known-host: ssh.osc-fr1.scalingo.com
app-name: quefairedemesobjets
deploy_dags:
needs: [run_tests]
uses: ./.github/workflows/airflow_deploy_dags.yml
with:
S3_BUCKET_DESTINATION: s3://prod-dags/
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.AIRFLOW_PROD_S3_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AIRFLOW_PROD_S3_SECRET_KEY }}