ci: add Block setup step with S3 credentials from secrets
This commit is contained in:
@@ -6,6 +6,7 @@ on:
|
||||
paths:
|
||||
- 'flows/**'
|
||||
- 'deploy.py'
|
||||
- 'setup_blocks.py'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
@@ -17,13 +18,22 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
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
|
||||
run: |
|
||||
git clone --depth 1 https://gitea.arnodo.fr/${{ gitea.repository }}.git .
|
||||
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
|
||||
env:
|
||||
PREFECT_API_URL: ${{ secrets.PREFECT_API_URL }}
|
||||
|
||||
Reference in New Issue
Block a user