Merge pull request #69 from davidwitk/motherduck #27
This file contains 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: Deployment Pipeline for main | |
on: | |
push: | |
branches: | |
- main | |
env: | |
DBT_PROFILES_DIR: ./ | |
POSTGRES_HOST: ${{ secrets.POSTGRES_HOST }} | |
POSTGRES_PROD_USER: ${{ secrets.POSTGRES_PROD_USER }} | |
POSTGRES_PROD_PW: ${{ secrets.POSTGRES_PROD_PW }} | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Install requirements | |
run: pip install -q -r requirements.txt | |
- name: dbt deps | |
run: dbt deps | |
- name: dbt parse | |
run: dbt parse --target prod | |
- name: Upload manifest to S3 | |
run: | | |
aws s3 cp target/manifest.json ${{ secrets.AWS_BUCKET_URL }} | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
AWS_REGION: eu-central-1 |