Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 1011 Bytes

README.md

File metadata and controls

20 lines (16 loc) · 1011 Bytes

nr-dbt-project

This repository contains Data build tools(DBT) data models and other artifacts

Use of GHCR

Container images are built automatically and pushed to the GHCR any time there is a push or PR to the main branch. Images are named according to the file path and tagged with the branch name. Use the image name in an Airflow DAG to create a job using the DBT container. See Airflow example here: dbt_example.py

Usage example:

docker pull ghcr.io/bcgov/nr-dbt-project-ods-dlh:main

Alternatively, there is this manual workflow:

docker build -t image-registry.apps.emerald.devops.gov.bc.ca/a1b9b0-dev/<image_name>:<tag> -f <Dockerfile_Name> .
docker push image-registry.apps.emerald.devops.gov.bc.ca/a1b9b0-dev/<image_name>:<tag>

Note: If you add a new Dockerfile, a new GitHub Actions workflow needs to be created to publish the container to the GHCR.