Skip to content

Commit

Permalink
Creating GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
pgoslatara committed Jun 30, 2024
1 parent 497d064 commit 95a5acf
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/workflows/ci_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,3 +155,15 @@ jobs:
--volume "$PWD/dbt_project":/app/dbt_project \
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:ci \
poetry run dbt_bouncer --dbt-project-dir dbt_project
github-action:
# needs: [pre-commit]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Run action
uses: ./
with:
dbt_project_dir: dbt_project
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG PYTHON_VERSION
FROM python:${PYTHON_VERSION}-slim
FROM python:3.11.5-slim

# https://python-poetry.org/docs#ci-recommendations
ENV PYTHONUNBUFFERED=1 \
Expand Down
12 changes: 12 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: 'dbt-bouncer'
description: 'Configure and enforce conventions for your dbt project.'
inputs:
dbt-project-dir:
default: '.'
description: 'Directory where your dbt project is located.'
required: false
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.dbt-project-dir }}

0 comments on commit 95a5acf

Please sign in to comment.