From 06c6635270adec76118aaf578edf3a1ce2eb97d8 Mon Sep 17 00:00:00 2001 From: droguljic <1875821+droguljic@users.noreply.github.com> Date: Fri, 8 Nov 2024 12:52:22 +0100 Subject: [PATCH] docs: add `server_build_and_push` example Add example usage for the `build_and_push_server_to_aws_ecr` job. --- src/examples/server_build_and_push.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/examples/server_build_and_push.yml diff --git a/src/examples/server_build_and_push.yml b/src/examples/server_build_and_push.yml new file mode 100644 index 0000000..636192d --- /dev/null +++ b/src/examples/server_build_and_push.yml @@ -0,0 +1,17 @@ +description: | + The "build_and_push_server_to_aws_ecr" job builds a Docker image, authenticates the job + with AWS using OIDC identity tokens, and pushes the image to ECR. + By default, the SHA1 hash of the commit and the "latest" string are used as a tag for + the image, while the AWS account, role, and region are sourced from the environment. + +usage: + version: 2.1 + orbs: + rollout: studion/rollout@x.y.z + workflows: + build_and_push_server: + jobs: + - rollout/build_and_push_server_to_aws_ecr: + path_to_dockerfile: ~/app + path_to_build_dir: ~/app/src + repo_name: my-app