UBCSailbot / sailbot_workspace

UBC Sailbot's monorepo
https://ubcsailbot.github.io/sailbot_workspace/main/
Apache License 2.0
5 stars 1 forks source link

CD for Website #366

Closed jahn18 closed 5 months ago

jahn18 commented 5 months ago

Description

This Github workflow will automatically deploy the website to a specified VM.

Setup Steps:

  1. Create a remote VM using some cloud provider.
  2. Add an SSH key to the VM (e.g. public SSH key).
  3. Ensure Docker is installed on VM
    • See resources below.
  4. Update the three secrets SSH_HOST, SSH_USERNAME, and SSH_KEY on Github

Once these four steps are done, the deployment should work successfully!

Verification

I tested this workflow using a personal VM from DigitalOcean.

Some scenarios:

Resources

jahn18 commented 5 months ago

Thanks @SPDonaghy 😄 Apologizes for the late response, I just started work so things got a bit busy. I'm going to hand off the remaining work to @JordanChen123 because it'll be important to familarize himself with this.

I added the steps in the PR to the docs here: https://ubcsailbot.atlassian.net/wiki/spaces/prjt22/pages/2048032924/Website+Deployment

jahn18 commented 5 months ago

Once I get your approval @patrick-5546 should be good to go :)