From 23bc017e209dc8aaf6afa057ea9ae17cd5504fac Mon Sep 17 00:00:00 2001 From: Li Yi Date: Fri, 25 Dec 2020 20:59:49 +0800 Subject: [PATCH] Sync docker images for arm64 --- .travis.yml | 10 ++++++++++ sync_images.sh | 20 ++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 .travis.yml create mode 100755 sync_images.sh 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 +