From 2a013d8ba2a3453979b96e33d2a15971f3d0b34e Mon Sep 17 00:00:00 2001 From: Benjamin Date: Wed, 29 Jan 2025 14:28:46 +0100 Subject: [PATCH] Debugging --- .github/workflows/artifacts_workflow.yml | 28 ++++++++++++------------ udaartifact.yml | 2 +- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/artifacts_workflow.yml b/.github/workflows/artifacts_workflow.yml index 8de7f18..bc2ad7a 100644 --- a/.github/workflows/artifacts_workflow.yml +++ b/.github/workflows/artifacts_workflow.yml @@ -11,7 +11,7 @@ on: required: true default: 'error.html' env: - BUCKET_NAME: website-bucket + BUCKET_NAME: website-cache jobs: build: @@ -33,17 +33,17 @@ jobs: with: name: udaartifact template: udaartifact.yml - no-fail-on-empty-changeset: "1" - # - #- name: Upload files to S3 bucket - # run: | - # aws s3 cp ./website/${{ github.event.inputs.index_document }} s3://${{env.BUCKET_NAME}} - # aws s3 cp ./website/${{ github.event.inputs.error_document }} s3://${{env.BUCKET_NAME}} -# - #- name: Show S3 bucket website URL - # run: | - # aws cloudformation describe-stacks \ - # --stack-name uda-artifact \ - # --query 'Stacks[0].Outputs[?OutputKey==`ArtifactBucketWebsiteURL`].OutputValue' \ - # --output text + # no-fail-on-empty-changeset: "1" + + - name: Upload files to S3 bucket + run: | + aws s3 cp ./website/${{ github.event.inputs.index_document }} s3://${{env.BUCKET_NAME}} + aws s3 cp ./website/${{ github.event.inputs.error_document }} s3://${{env.BUCKET_NAME}} + + - name: Show S3 bucket website URL + run: | + aws cloudformation describe-stacks \ + --stack-name uda-artifact \ + --query 'Stacks[0].Outputs[?OutputKey==`ArtifactBucketWebsiteURL`].OutputValue' \ + --output text diff --git a/udaartifact.yml b/udaartifact.yml index d85829b..cd01b03 100644 --- a/udaartifact.yml +++ b/udaartifact.yml @@ -4,7 +4,7 @@ Resources: WebBucket: Type: AWS::S3::Bucket Properties: - BucketName: website-bucket + BucketName: website-cache WebsiteConfiguration: IndexDocument: index.html ErrorDocument: error.html