Skip to content

Commit

Permalink
Merge pull request #40 from DevOps-Cloud-Team5/SCRUM-91-set-up-cf
Browse files Browse the repository at this point in the history
adjustment to set up the s3 bucket
  • Loading branch information
VU-Irakliy authored Mar 19, 2024
2 parents 2997336 + c425952 commit 0fb28c3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/cloudformation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,12 @@ jobs:
--stack-name ${{ github.event.inputs.project_name }}-stack \
--parameter-overrides ProjectName=${{ github.event.inputs.project_name }} \
--capabilities CAPABILITY_IAM
- name: Build React App
env:
VITE_API_URL: ${{ secrets.VITE_API_URL }}
run: |
npm install
npm run build
- name: Deploy frontend to S3
run: aws s3 sync ./dist/ ${{ secrets.S3_BUCKET }} --delete
run: aws s3 sync ./dist/ ${{ github.event.inputs.project_name }}-group5-attendunce-bucket --delete
2 changes: 1 addition & 1 deletion .github/workflows/stacks/testStackCF.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ Resources:
S3Bucket:
Type: 'AWS::S3::Bucket'
Properties:
BucketName: !Sub '${ProjectName}-blablabla-attendunce-bucket'
BucketName: !Sub '${ProjectName}-group5-attendunce-bucket'
# AccessControl: PublicRead

0 comments on commit 0fb28c3

Please sign in to comment.