This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI workflow for building graviton image and publishing it to ECR | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| environment: | |
| description: 'Environment to run the workflow against' | |
| type: environment | |
| required: true | |
| pull_request: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI Graviton workflow for Spring Boot microservices | |
| on: | |
| workflow_call: | |
| inputs: | |
| # pass in environment through manual trigger, if not passed in, default to 'dev' | |
| env: | |
| required: true | |
| type: string | |
| default: 'dev' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Terraform Deployment" | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| environment: | |
| description: 'Environment to run the workflow against' | |
| type: environment | |
| required: true | |
| push: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Terraform Deployment" | |
| on: | |
| workflow_call: | |
| inputs: | |
| # working-directory is added to specify "terraform" directory in project source code as that's where the terraform files live. | |
| working-directory: | |
| required: false | |
| type: string | |
| default: './terraform' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @RestController | |
| @RequestMapping(value = "/customers", produces = MediaType.APPLICATION_JSON_VALUE) | |
| @ImportRuntimeHints(CustomerController.CustomerControllerRuntimeHints.class) | |
| public class CustomerController { | |
| private final CustomerService customerService; | |
| public CustomerController(CustomerService customerService) { | |
| this.customerService = customerService; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI JVM workflow | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| environment: | |
| description: 'Environment to run the workflow against' | |
| type: environment | |
| required: true | |
| pull_request: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI Native Image Buildpacks workflow | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| environment: | |
| description: 'Environment to run the workflow against' | |
| type: environment | |
| required: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Sid": "AllowImagePushAndPull", | |
| "Effect": "Allow", | |
| "Action": [ | |
| "ecr:BatchCheckLayerAvailability", | |
| "ecr:CompleteLayerUpload", | |
| "ecr:InitiateLayerUpload", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Effect": "Allow", | |
| "Principal": { | |
| "Federated": "arn:aws:iam::#########:oidc-provider/token.actions.githubusercontent.com" | |
| }, | |
| "Action": "sts:AssumeRoleWithWebIdentity", | |
| "Condition": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jobs: | |
| build: | |
| permissions: | |
| id-token: write # need this for OIDC | |
| contents: read | |
| uses: <path to reusable workflows repo>/.github/workflows/java-maven-build-test.yml@latest | |
| with: | |
| # for multi-repo, set it as "." (current directory); for monorepo, specify the file path for UI, such as "./frontend" | |
| working-directory: . |