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

Feature/added action to deploy webapp to s3 #182

Merged
merged 3 commits into from
Jun 21, 2024

Conversation

lucaslightit
Copy link
Collaborator

@lucaslightit lucaslightit commented Jun 19, 2024

Add action to deploy web to s3

💻 What type of change is this?

  • 🤖 Build / CI

I configured two new actions to deploy eo-web to a specific bucket. So we can access the built version of the site directly from S3 and not from Github

aws-region: us-east-2

- name: Deploy static site to S3 bucket
run: aws s3 sync ./dist/ s3://eo-care-web-prod --delete
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is --delete for? Maybe it would be good to keep old versions for rollbacks?

Although I guess we could revert in github and redeploy.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--delete deletes all the previous files not present in the new version. I prefer to do it to avoid collisions. If we have to roll back, we can do it by reverting the PR.

.github/workflows/production_deploy.yml Outdated Show resolved Hide resolved
@lucaslightit lucaslightit merged commit dc1b750 into develop Jun 21, 2024
3 checks passed
@lucaslightit lucaslightit deleted the feature/added-action-to-deploy-webapp-to-s3 branch June 21, 2024 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants