The application build repository setup process will create infrastructure resources needed to store built release-candidate artifacts used to deploy the application to an environment.
Before setting up the application's build repository you'll need to have:
- Set up the AWS account
- Configure the app in
infra/<APP_NAME>/app-config/main.tf.
To create the tfbackend file for the build repository using the backend configuration values from your current AWS account, run
make infra-configure-app-build-repository APP_NAME=<APP_NAME>Pass in the name of the app folder within infra.
Now run the following commands to create the resources, making sure to verify the plan before confirming the apply.
make infra-update-app-build-repository APP_NAME=<APP_NAME>Run the Build and publish GitHub Actions workflow to build your application's image and publish it to the container image registry you just created. If you have the GitHub CLI installed, you can do this using the following command.
gh workflow run build-and-publish.yml --field app_name=<APP_NAME> --field ref=mainOnce you set up the deployment process, you can proceed to set up application environments