-
Notifications
You must be signed in to change notification settings - Fork 5
52 lines (45 loc) · 1.28 KB
/
cd_prod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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 }}