Update registro CAM #33
This file contains hidden or 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: Update registro CAM | |
| on: | |
| schedule: | |
| - cron: '0 0 * * MON' | |
| workflow_dispatch: | |
| jobs: | |
| update-registro-cam: | |
| runs-on: ubuntu-latest | |
| environment: prod | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install uv | |
| uv pip install --system -r requirements.txt | |
| - name: Write credentials file | |
| run: | | |
| mkdir -p conf/prod | |
| echo "delta_lake:" > conf/prod/credentials.yml | |
| echo " AWS_ENDPOINT_URL: ${{ secrets.S3_ENDPOINT_URL }}" >> conf/prod/credentials.yml | |
| echo " AWS_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY_ID }}" >> conf/prod/credentials.yml | |
| echo " AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET_KEY }}" >> conf/prod/credentials.yml | |
| - name: Execute Python command | |
| run: | | |
| kedro run --to-outputs registro_cam | |
| env: | |
| KEDRO_ENV: prod |