Skip to content

Commit

Permalink
update copy_image.sh to retry image coy
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Jul 24, 2023
1 parent e1fe63a commit 7003bfc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@

* 2.0.0 -- 2023-01-30
- add versions, require > 0.13

* 2.0.1 -- 2023-07-24
- update copy_image.sh to retry the copy until successful
6 changes: 4 additions & 2 deletions bin/copy_image.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

VERSION="1.0.0"
VERSION="1.0.1"

###############################################################################
# This script uses skopeo to copy a docker image from one repository to
Expand Down Expand Up @@ -306,7 +306,9 @@ copy_image() {
echo "Copying $SOURCE_IMAGE"
echo "to $DESTINATION_IMAGE"

${command[@]}
while ! ${command[@]}; do
echo "Retrying uploading image..."
done
}


Expand Down
2 changes: 1 addition & 1 deletion version.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
locals {
_module_name = "aws-ecr-copy-images"
_module_version = "2.0.0"
_module_version = "2.0.1"
}

0 comments on commit 7003bfc

Please sign in to comment.