diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..22d3b35 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,10 @@ +language: python + +arch: + - arm64 + +services: + - docker + +script: + - ./sync_images.sh diff --git a/sync_images.sh b/sync_images.sh new file mode 100755 index 0000000..e3950db --- /dev/null +++ b/sync_images.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +file="images.properties" + +if [ -f "$file" ] +then + echo "$file found." + + while IFS='=' read -r key value + do + #echo "${key}=${value}" + docker pull ${key} + docker tag ${key} ${value} + docker push ${value} + done < "$file" + +else + echo "$file not found." +fi +