Skip to content

Commit

Permalink
generate_docs: Associate the correct MIME types when uploading bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
vperron committed Jun 23, 2023
1 parent 6b0006a commit c11a9f3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions dags/generate_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@

env_vars = db.connection_envvars()

# these can stay as env vars since they are considered deployment secrets, not business vars.
s3cmd_prefix = "s3cmd --access_key=${S3_DOCS_ACCESS_KEY} --secret_key=${S3_DOCS_SECRET_KEY} "

dbt_deps = bash.BashOperator(
task_id="dbt_deps",
bash_command="dbt deps",
Expand All @@ -32,9 +35,8 @@
cellar_sync = bash.BashOperator(
task_id="cellar_sync",
bash_command=(
# these can stay as env vars since they are considered deployment secrets, not business vars.
"s3cmd --access_key=${S3_DOCS_ACCESS_KEY} --secret_key=${S3_DOCS_SECRET_KEY} "
"sync --delete-removed --acl-public /tmp/dbt-docs/ s3://${S3_DOCS_BUCKET}/"
s3cmd_prefix + "sync --delete-removed --guess-mime-type --acl-public "
"/tmp/dbt-docs/ s3://${S3_DOCS_BUCKET}/"
),
)

Expand Down

0 comments on commit c11a9f3

Please sign in to comment.