Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

❌ Deprecation Notice

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.

Overview

The build-apply composite action builds and applies the current branch to a destination environment.

The action will do the following:

  1. Configure github credentials so that terraform can read from our private repos
  2. Run npm commands to build and test
  3. Run a script to read secrets and write them to a .env file (git ignored)
  4. Run terraform commands using the .env file to apply state to the target environment under the provided workspace

Requirements

The following items must be in the repository:

  • package.json dependencies:
    • env-cmd - to launch process using environment variables in .env file
    • core-build-library - for core-build commands
  • package.json scripts:
    • lint - lint the code
    • build - build the code
    • test - test the code (pre-deployment)
  • terraform folder containing roots for each environment (dev, stage, and prod)
  • (optional) secrets-map.json file containing map of secrets and associated environment variables. These will be written to .env file.