Skip to content

Commit 4aeb172

Browse files
committed
organize folders
1 parent c3daef3 commit 4aeb172

37 files changed

+1377
-1419
lines changed

.github/workflows/dbt-docker-publish-pmt.yml renamed to .github/workflows/docker-publish-pmt-dbt.yml

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,12 @@ name: Push to GHCR
22

33
on:
44
push:
5-
branches: [ "main" ]
6-
pull_request:
7-
branches: [ "main" ]
5+
branches: ["main" ]
86

97
env:
10-
# Vish: image name is ghcr.io/bcgov/nr-dap-dlh-pmt:main
118
REGISTRY: ghcr.io
12-
DBT_PATH: pmt/dbt/pmt_dbt/
13-
IMAGE_NAME: ${{ github.repository }}-pmt
9+
DOCKERFILE_PATH: permitting/dbt/pmt_dbt/
10+
IMAGE_NAME: ${{ github.repository }}-pmt-dbt
1411

1512
jobs:
1613
build:
@@ -26,9 +23,7 @@ jobs:
2623

2724
- name: Install cosign
2825
if: github.event_name != 'pull_request'
29-
uses: sigstore/cosign-installer@6e04d228eb30da1757ee4e1dd75a0ec73a653e06 #v3.1.1
30-
with:
31-
cosign-release: 'v2.1.1'
26+
uses: sigstore/cosign-installer@v3.3.0
3227

3328
- name: Set up Docker Buildx
3429
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0
@@ -51,19 +46,19 @@ jobs:
5146
id: build-and-push
5247
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
5348
with:
54-
# Vish: adding this to help the action find the Dockerfile to build from
55-
context: ${{ env.DBT_PATH }}/
49+
# DF-NOTE: to help the action find the Dockerfile to build from
50+
context: ${{ env.DOCKERFILE_PATH }}/
5651
push: ${{ github.event_name != 'pull_request' }}
5752
tags: ${{ steps.meta.outputs.tags }}
5853
labels: ${{ steps.meta.outputs.labels }}
5954
cache-from: type=gha
6055
cache-to: type=gha,mode=max
6156

62-
#- name: Sign the published Docker image
63-
#if: ${{ github.event_name != 'pull_request' }}
64-
#env:
57+
- name: Sign the published Docker image
58+
if: ${{ github.event_name != 'pull_request' }}
59+
env:
6560
# https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
66-
#TAGS: ${{ steps.meta.outputs.tags }}
67-
#DIGEST: ${{ steps.build-and-push.outputs.digest }}
68-
69-
#run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}
61+
TAGS: ${{ steps.meta.outputs.tags }}
62+
DIGEST: ${{ steps.build-and-push.outputs.digest }}
63+
64+
run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,21 @@
11
# nr-dap-dlh
2-
Holds the objects for the data lakehouse part of the data analytics platform.
2+
This repository holds code and artifacts for the Data Analytics Platform (DAP).
3+
4+
The Data Lakehouse (DLH) allows for the summarization, transformation and combination of structured and semi-structured data, including the consumption of replicated data assets from the Operation Data Store (ODS), APIs and Object Storage.
5+
6+
## File Structure
7+
8+
- **ETL Tools (such as Data Build Tool (DBT) projects):**
9+
`nr-dap-dlh/{domain}/{name of tool}/{Files}`
10+
11+
- **Python or R Scripts**
12+
`nr-dap-dlh/{domain}/scripts/{Files}`
13+
14+
- **DDL (Data Definition Language)** Includes commands like CREATE, ALTER, and COMMENT that define and modify database structure.
15+
`nr-dap-dlh/{domain}/ddl/{Filename = name of the table}`
16+
17+
- **DQL (Data Query Language) / DML (Data Manipulation Language)** Includes commands like SELECT, INSERT, UPDATE, and DELETE that manipulate data within the database.
18+
`nr-dap-dlh/{domain}/dml/{Files}`
19+
20+
- **DCL (Data Control Language)** Includes commands like GRANT and REVOKE that control access to the data in the database.
21+
`nr-dap-dlh/{domain}/dcl/{Files}`

logs/dbt.log

Lines changed: 0 additions & 55 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.

pmt/dbt/pmt_dbt/.gitignore renamed to permitting/dbt/pmt_dbt/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@
22
target/
33
dbt_packages/
44
logs/
5-
profiles.yml
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)