File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3+ set -euo pipefail
4+ # -e: exit on any command with a non-zero status
5+ # -u: treat unset variables as errors
6+ # -o pipefail: fail a pipeline if any command in it fails
7+
8+ # Optional: make errors show the line number and command that failed
9+ trap ' echo "Error on line $LINENO: ${BASH_COMMAND}" >&2' ERR
10+
311function show_help() {
412 echo " This script allows to build and push the docker images for the core and the migration"
513 echo " Usage: bash docker/build.sh ECR_URI VERSION"
614 echo " Arguments:"
715 echo " ECR_URI URI of the ECR in AWS, example: public.ecr.aws/qzuer78 or a private ECR XXXXXXXX.dkr.ecr.region.amazonaws.com/repo."
8- echo " VERSION The version that is deployed, should be a semantic version i.e 1 .45.8"
16+ echo " VERSION The version that is deployed, should be a semantic version i.e v1 .45.8"
917}
1018
1119# Check if no arguments are provided
You can’t perform that action at this time.
0 commit comments