From 032b91d5b39055d96c29d2eab5719caee928fbfc Mon Sep 17 00:00:00 2001 From: Damien Arnodo Date: Sat, 31 Jan 2026 16:35:37 +0000 Subject: [PATCH] ci: add Block setup step with S3 credentials from secrets --- .gitea/workflows/deploy.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 2a9ad9c..8716a41 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -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 }}