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:
PROD_CONFIG_YAML The configuration file used by GCP for the function's variables
PROD_CONFIG_YAML_64 A base64 encoded version of PROD_CONFIG_YAML
PROD_CLOUD_AUTH GCP service account which can deploy to the GCP project's function. JSON format with no carriage returns or line feeds
PROD_GCP_PROJECT_ID The GCP project id being deployed to
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:
The code is checked out
The version is extracted from the first line of the version file
A tag is written to the merge's SHA using the version extracted from the file
The config.yml file is written to disk
glcoud action is loaded
The deploy is run using the .deployment file from the function's directory.
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:
PROD_CONFIG_YAML
JSON
format with no carriage returns or line feedsBasic 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:.deployment
file from the function's directory.