Create Masking Policy in a .gitlab-ci.yml File #4798
Unanswered
Salahddin-Warid
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So I am trying to run the dbt command 'run-operation' on a yml file (.gitlab-ci.yml)
There is the command on dbt:
dbt run-operation create_masking_policy --args '{"resource_type": "models"}'
I would like this command on my yml file between the seed and run command:
script:
- export DBT_SNOWFLAKE_DATABASE="ANALYTICS_PRODUCTION"
- export API_KEY=$DBT_CLOUD_API_KEY
- dbt deps --profiles-dir . --target prod
- dbt seed --full-refresh --profiles-dir . --target prod
- ADD THE COMMAND HERE
- dbt run --profiles-dir . --target prod --exclude tag:cleaned_snapshots
I keep getting syntax errors on my yml file when trying to add it. Does anyone know the correct way of writing this instruction ?
Since run-operation isn't CLI only there should be a way to do this right?
Thanks for your help !
Beta Was this translation helpful? Give feedback.
All reactions