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

Automated deployments #179

Merged
merged 5 commits into from
Mar 25, 2023
Merged

Conversation

dprothero
Copy link
Contributor

@dprothero dprothero commented Mar 25, 2023

This PR adds automated deployments and PR validation.

  1. Trigger: A PR is opened or a commit is added
    Action: Just build the Docker image to validate (we can add more tests here in the future)
  2. Trigger: Something is merged to the staging branch
    Action: Image is built, pushed to DockerHub under the staging label, and deployed to Digital Ocean.
  3. Trigger: Something is merged to the main branch
    Action: Image is built, pushed to DockerHub under the latest label, and deployed to Digital Ocean.

@eepMoody will need to add the following secrets to the GitHub repository (recommend doing so before merging this PR):

  • DOCKERHUB_USERNAME (presuming it should be set to eepmoody)
  • DOCKERHUB_TOKEN (generate one here with read/write access)
  • DIGITALOCEAN_TOKEN (generate one here with read/write access)
  • MAIN_APP_ID (guid you can get from the URL of the app in DO console)
  • STAGING_APP_ID

If it fails after merging, ping dpro in Discord to troubleshoot and push up any necessary fixes.

@dprothero dprothero marked this pull request as draft March 25, 2023 20:42
@dprothero dprothero changed the base branch from main to staging March 25, 2023 21:34
@dprothero dprothero marked this pull request as ready for review March 25, 2023 21:48
@eepMoody eepMoody merged commit 8c4e362 into open5e:staging Mar 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants