Skip to content

build exclusivite reparation filter when reparer is checked (#718) #425

build exclusivite reparation filter when reparer is checked (#718)

build exclusivite reparation filter when reparer is checked (#718) #425

Workflow file for this run

name: "[Preprod] Déploiement continu"
on:
workflow_dispatch:
push:
branches:
- main
env:
S3_HOST: https://cellar-c2.services.clever-cloud.com
FOLDER_SOURCE: dags
S3_BUCKET_DESTINATION: s3://qfdmo-airflow-dags/preprod/
AWS_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET_KEY }}
defaults:
run:
shell: bash
jobs:
run_test:
uses: ./.github/workflows/run_tests.yml
deploy:
name: Deploy to Preprod
needs: [run_test]
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_dags:
name: Copy local folder to Preprod s3 bucket
needs: [run_test]
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install AWS CLI dependencies
run: |
pip install awscli
- name: Push to S3 bucket preprod
run: aws --endpoint-url ${{ env.S3_HOST }} s3 sync --delete --quiet ${{ env.FOLDER_SOURCE }} ${{ env.S3_BUCKET_DESTINATION }}