Bump eslint-config-love from 52.0.0 to 53.0.0 (#679) #375
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and test | |
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 }} |