This template provides a React project with minimal setup with a CI/CD pipeline preconfigured.
The CD pipeline is handled by Pulumi, the configuration for which can be found with the iac project.
- Create an S3 bucket in AWS. This will be used as the Pulumi backend.
- Provide AWS environment variables (these can be found in bitwarden under AWS Credentials)
- Login to the Pulumi backend
pulumi login "s3://<bucket name including region>"
- Navigate to Pulumi.yaml and update the project name
- Depending on the environment you want to build in, either update the values in Pulumi.dev.yaml, or create a new environment stack with corresponding yaml file.
pulumi stack init
pulumi up
(the pass phrase can be found in bitwarden under pulumi)
The CI pipeline is handled by Jenkins, the configuration for which can be found in pipeline/Jenkinsfile.
- Create a multi-branch pipeline which points to the GitHub repository
- In GitHub, setup a webhook which calls http://81.109.142.168:8080/multibranch-webhook-trigger/invoke?token=<unique_token>.
- In Jenkins, add webhook scanning to the project using the unique_token