[Materialized] br_ms_cnes.dicionario (#1352) #5740
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: Build Docker image | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - .github/workflows/cd.yaml | |
| - pipelines/**/* | |
| - models/**/* | |
| - macros/**/* | |
| - tests-dbt/**/* | |
| - pyproject.toml | |
| - uv.lock | |
| - Dockerfile | |
| # DBT config files | |
| - dbt_project.yml | |
| - packages.yml | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - .github/workflows/cd-staging.yaml | |
| - .github/workflows/build-docker.yaml | |
| - pipelines/**/* | |
| - models/**/* | |
| - macros/**/* | |
| - tests-dbt/**/* | |
| - pyproject.toml | |
| - uv.lock | |
| - Dockerfile | |
| # DBT config files | |
| - dbt_project.yml | |
| - packages.yml | |
| env: | |
| GCP_PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }} | |
| GCP_SA_KEY: ${{ secrets.GCP_SA_KEY }} | |
| GH_PAT: ${{ secrets.GH_PAT }} | |
| IMAGE_NAME: ghcr.io/basedosdados/prefect-flows | |
| jobs: | |
| build-container: | |
| name: Build Docker image | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Login to GitHub Container Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: gabriel-milan | |
| password: ${{ secrets.GH_PAT }} | |
| - name: Docker meta | |
| id: meta | |
| uses: docker/metadata-action@v5 | |
| with: | |
| images: | | |
| ${{ env.IMAGE_NAME }} | |
| tags: | | |
| type=sha,format=long,prefix= | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| - name: Build and publish Prefect Agent image | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| push: true | |
| tags: ${{ steps.meta.outputs.tags }},${{ env.IMAGE_NAME }}:latest |