Skip to content

Deploiement du cluster airflow sur clevercloud #162

Deploiement du cluster airflow sur clevercloud

Deploiement du cluster airflow sur clevercloud #162

Workflow file for this run

name: "[🟠 Preprod] Déploiement continu"
on:
workflow_dispatch:
push:
branches:
- main
pull_request: # for test only
env:
CC_PREPROD_AIRFLOW_WEBSERVER_APP: app_d3c229bf-be85-4dbd-aca2-c8df1c6166de
CC_PREPROD_AIRFLOW_SCHEDULER_APP: app_3d1f7d89-d7f0-433a-ac01-c663d4729143
defaults:
run:
shell: bash
jobs:
run_tests:
uses: ./.github/workflows/run_tests.yml
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-preprod
deploy_airflow-webserver:
name: Deploy PREPROD Airflow webserver on Clever Cloud
needs: [run_tests]
runs-on: "ubuntu-latest"
steps:
- uses: 47ng/[email protected]
with:
alias: ${{ env.CC_PREPROD_AIRFLOW_WEBSERVER_APP }}
env:
CLEVER_TOKEN: ${{ secrets.CLEVER_TOKEN }}
CLEVER_SECRET: ${{ secrets.CLEVER_SECRET }}
deploy_airflow-scheduler:
name: Deploy PREPROD Airflow scheduler on Clever Cloud
needs: [run_tests]
runs-on: "ubuntu-latest"
steps:
- uses: 47ng/[email protected]
with:
alias: ${{ env.CC_PREPROD_AIRFLOW_SCHEDULER_APP }}
env:
CLEVER_TOKEN: ${{ secrets.CLEVER_TOKEN }}
CLEVER_SECRET: ${{ secrets.CLEVER_SECRET }}