Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Masking Policy in a .gitlab-ci.yml File #21

Open
itsSalah opened this issue Feb 27, 2022 · 1 comment
Open

Create Masking Policy in a .gitlab-ci.yml File #21

itsSalah opened this issue Feb 27, 2022 · 1 comment
Labels
question Further information is requested

Comments

@itsSalah
Copy link

Hello !

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

Do you know if it is possible for me to incorporate that create_marking_policy into my yml file for the deployment on our production ? I keep getting syntax errors when trying to do so...

Thank you so much and amazing project btw !
Salah

@entechlog
Copy link
Owner

@itsSalah ,

  • Can you share the error ?
  • Where are you running this ?

@entechlog entechlog added the question Further information is requested label Mar 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants