From 85172c9a7c2c8e10f0b9a589532504d5965ec404 Mon Sep 17 00:00:00 2001 From: Fabien Le Frapper Date: Wed, 29 Jan 2025 22:22:26 +0100 Subject: [PATCH] syntax yml fix --- .github/workflows/ci.yml | 9 ++++++--- .github/workflows/deploy.yml | 34 ---------------------------------- 2 files changed, 6 insertions(+), 37 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1d250f97e..4e46c9938 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,6 +12,9 @@ jobs: # run_tests: # uses: ./.github/workflows/run_tests.yml deploy: - environment: preprod - url: https://quefairedemesobjets-preprod.osc-fr1.scalingo.io - uses: ./.github/workflows/deploy.yml + runs-on: ubuntu-latest + environment: + name: preprod + url: https://quefairedemesobjets-preprod.osc-fr1.scalingo.io + steps: + - uses: ./.github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a90246129..e66ce5bea 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -3,9 +3,6 @@ name: "Déploiement continu" on: workflow_call: - push: - branches: - - main defaults: run: @@ -14,7 +11,6 @@ defaults: jobs: deploy: name: Deploy on Scalingo - needs: [run_tests] runs-on: ubuntu-latest steps: - uses: action/checkout@v4 @@ -34,33 +30,3 @@ jobs: "username": "Bipboop le robot de seconde main", "icon": "https://cdn3.iconfinder.com/data/icons/system-basic-vol-4-1/20/icon-note-attention-alt3-512.png" } - deploy_airflow-webserver: - name: Deploy PREPROD Airflow webserver on Clever Cloud - needs: [run_tests] - runs-on: "ubuntu-latest" - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - uses: 47ng/actions-clever-cloud@v2.0.0 - with: - alias: lvao-preprod-airflow-webserver - 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: actions/checkout@v4 - with: - fetch-depth: 0 - - uses: 47ng/actions-clever-cloud@v2.0.0 - with: - alias: lvao-preprod-airflow-scheduler - env: - CLEVER_TOKEN: ${{ secrets.CLEVER_TOKEN }} - CLEVER_SECRET: ${{ secrets.CLEVER_SECRET }}