Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 1.55 KB

INSTALL.github.rst

File metadata and controls

28 lines (22 loc) · 1.55 KB

Deployment from GitHub registry

This deployment schema is mostly used for CI purpose, but can be used for manual deployment as well.

  1. #. Deploy Core to the target machine as described in DEPLOY.rst except for Install Core section

  2. Prepare github personal access token aka PAT (not github password) - it will be needed to access the node docker image (description is based on https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token ):

    1. Login to your github account (register it if you do not have one)
    2. Verify your email address for github, if it has not been verified yet
    3. In the upper-right corner of any page, click your profile photo, then click Settings ( https://github.com/settings/profile )
    4. In the left sidebar, click <> Developer settings
    5. In the left sidebar, click Personal access tokens ( https://github.com/settings/tokens )
    6. Click "Generate new token"
    7. Fill in "Note" field
    8. Choose "No expiration" in "Expiration" field
    9. Check "read:packages" (Download packages from GitHub Package Registry) in Select Scopes box
    10. Click "Generate token"
    11. Copy your personal access token (PAT). You will not be able to see it again!
  3. Run deploy.sh:

    DOCKER_REGISTRY_HOST=ghcr.io bash <(wget -qO- https://raw.githubusercontent.com/thenewboston-developers/Core/master/scripts/deploy.sh)
    

This is a technical last line to serve as end-of-file-fixer workaround.