Skip to content

Commit 8cab847

Browse files
authored
changes to add deploy-url to output (#29)
1 parent a8a8bed commit 8cab847

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

.github/workflows/dbt-04-prd.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,19 +117,21 @@ jobs:
117117
id: step-03
118118
uses: nwtgck/actions-netlify@v2.0
119119
with:
120-
publish-dir: ${{ github.workspace }}/docs
121120
production-branch: main
121+
publish-dir: ${{ github.workspace }}/docs
122122
github-token: ${{ secrets.GITHUB_TOKEN }}
123123
deploy-message: "Deploy from GitHub Actions"
124124
enable-pull-request-comment: true
125125
enable-commit-comment: false
126126
overwrites-pull-request-comment: true
127+
github-deployment-environment: prd
127128
env:
128129
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
129130
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
130131
timeout-minutes: 1
132+
- run: "echo 'outputs.deploy-url: ${{ steps.step-03.outputs.deploy-url }}'"
131133

132-
# Deploy to Netlify
134+
# Deploy to S3
133135
deploy-to-s3:
134136
# Add a dependency to the build job
135137
needs: build
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
output "cloudfront_distribution__domain_name" {
22
value = module.cloudfront_cognito.cloudfront_distribution__domain_name
3+
}
4+
5+
output "aws_s3_bucket__arn" {
6+
value = module.cloudfront_cognito.aws_s3_bucket__arn
37
}

dbt-docs/terraform/modules/cloudfront-cognito/output.tf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,8 @@ output "cloudfront_distribution__id" {
2121
// Output the domain name of the CloudFront distribution for the app distribution
2222
output "cloudfront_distribution__domain_name" {
2323
value = aws_cloudfront_distribution.app.domain_name
24-
}
24+
}
25+
26+
output "aws_s3_bucket__arn" {
27+
value = aws_s3_bucket.app.arn
28+
}

0 commit comments

Comments
 (0)