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
| #!/usr/bin/env bash | |
| function ecr-add-tag() { | |
| if (( $# < 3 )); then | |
| echo "Wrong number of arguments. Usage: ecr-add-tag ECR_REPO_NAME TAG_TO_FIND TAG_TO_ADD [AWS_PROFILE]" | |
| return | |
| fi | |
| local repo_name=$1 | |
| local existing_tag=$2 | |
| local new_tag=$3 |