Skip to content

Commit c1d99fb

Browse files
authored
docs: add server_build_and_push example (#3)
Add example usage for the `build_and_push_server_to_aws_ecr` job.
1 parent 12ad785 commit c1d99fb

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
description: |
2+
The "build_and_push_server_to_aws_ecr" job builds a Docker image, authenticates the job
3+
with AWS using OIDC identity tokens, and pushes the image to ECR.
4+
By default, the SHA1 hash of the commit and the "latest" string are used as a tag for
5+
the image, while the AWS account, role, and region are sourced from the environment.
6+
7+
usage:
8+
version: 2.1
9+
orbs:
10+
rollout: studion/rollout@x.y.z
11+
workflows:
12+
build_and_push_server:
13+
jobs:
14+
- rollout/build_and_push_server_to_aws_ecr:
15+
path_to_dockerfile: ~/app
16+
path_to_build_dir: ~/app/src
17+
repo_name: my-app

0 commit comments

Comments
 (0)