ci: add Block setup step with S3 credentials from secrets
This commit is contained in:
@@ -6,6 +6,7 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
- 'flows/**'
|
- 'flows/**'
|
||||||
- 'deploy.py'
|
- 'deploy.py'
|
||||||
|
- 'setup_blocks.py'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -17,13 +18,22 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
apt-get update && apt-get install -y git
|
apt-get update && apt-get install -y git
|
||||||
pip install --no-cache-dir prefect prefect-aws
|
pip install --no-cache-dir prefect prefect-aws boto3
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
run: |
|
run: |
|
||||||
git clone --depth 1 https://gitea.arnodo.fr/${{ gitea.repository }}.git .
|
git clone --depth 1 https://gitea.arnodo.fr/${{ gitea.repository }}.git .
|
||||||
git checkout ${{ gitea.sha }}
|
git checkout ${{ gitea.sha }}
|
||||||
|
|
||||||
|
- name: Setup Prefect Blocks
|
||||||
|
env:
|
||||||
|
PREFECT_API_URL: ${{ secrets.PREFECT_API_URL }}
|
||||||
|
AWS_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY }}
|
||||||
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET_KEY }}
|
||||||
|
AWS_ENDPOINT_URL: ${{ secrets.S3_ENDPOINT_URL }}
|
||||||
|
run: |
|
||||||
|
python setup_blocks.py
|
||||||
|
|
||||||
- name: Deploy flows to Prefect
|
- name: Deploy flows to Prefect
|
||||||
env:
|
env:
|
||||||
PREFECT_API_URL: ${{ secrets.PREFECT_API_URL }}
|
PREFECT_API_URL: ${{ secrets.PREFECT_API_URL }}
|
||||||
|
|||||||
Reference in New Issue
Block a user