This composite action is no longer maintained by the Core Services team. Use at your own risk.
If your team still relies on this action, you may request CODEOWNER status for this directory to maintain it.
The build-apply composite action builds and applies the current branch to a destination environment.
The action will do the following:
- Configure github credentials so that terraform can read from our private repos
- Run npm commands to build and test
- Run a script to read secrets and write them to a
.envfile (git ignored) - Run terraform commands using the
.envfile to apply state to the target environment under the provided workspace
The following items must be in the repository:
package.jsondependencies:env-cmd- to launch process using environment variables in.envfilecore-build-library- for core-build commands
package.jsonscripts:lint- lint the codebuild- build the codetest- test the code (pre-deployment)
terraformfolder containing roots for each environment (dev,stage, andprod)- (optional)
secrets-map.jsonfile containing map of secrets and associated environment variables. These will be written to.envfile.