PixelogicDev / gruveebackend

This is the Backend work for Gruvee
MIT License
24 stars 4 forks source link

Tag and deploy on push master #53

Closed brettski closed 4 years ago

brettski commented 4 years ago

fixes #45

Adds tagging and deployment functionality using Github Actions.

readme file is updated with guidelines and how to add new functions to process.

The following Variables are required in GitHub secrets:

Basic workflow:

There is a separate Actions trigger file for each function. The Action will trigger whenever there is a change in the functions directory (e.g. cmd/tokengen/*). The following occurs:

  1. The code is checked out
  2. The version is extracted from the first line of the version file
  3. A tag is written to the merge's SHA using the version extracted from the file
  4. The config.yml file is written to disk
  5. glcoud action is loaded
  6. The deploy is run using the .deployment file from the function's directory.