From e36568f5a065c66821528fa119e2745b33e9d547 Mon Sep 17 00:00:00 2001 From: Giles Bradshaw Date: Thu, 22 Oct 2020 21:50:52 +0100 Subject: [PATCH] . --- .drone/drone-home.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.drone/drone-home.yml b/.drone/drone-home.yml index 0b0ad0e..6eb1680 100644 --- a/.drone/drone-home.yml +++ b/.drone/drone-home.yml @@ -113,6 +113,7 @@ steps: - drone_repo_namespace script: - mkdir -p /root/images/guacamole + - rm /root/images/guacamole/*.* - name: postgres:12.4 image: appleboy/drone-ssh:1.6.2@sha256:b801dc2cd238c192b6e99acfa7bc3f5b9a03f312bd2feb1e10b3a7a28a1b80ea @@ -130,6 +131,8 @@ steps: - "n=0\nwhile :\ndo\n docker login $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/ --username client --password \"$${REGISTRY_PASSWORD}\" \\\\\n && break # substitute your command here\n n=$((n+1))\n if [ $n -ge 10 ]; then\n echo \"login failed\"\n exit 1\n fi\n echo \"retrying login..$n\"\n sleep 5\ndone\n" - docker pull $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/postgres:12.4 - docker save $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/postgres:12.4 -o /root/images/guacamole/postgres:12.4.tar + - echo "docker load postgres:12.4.tar" >> /root/images/guacamole/load.sh + - echo "docker tag $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/postgres:12.4 $1/postgres:12.4" >> /root/images/guacamole/load.sh - name: guacamole/guacd:1.2.0 image: appleboy/drone-ssh:1.6.2@sha256:b801dc2cd238c192b6e99acfa7bc3f5b9a03f312bd2feb1e10b3a7a28a1b80ea @@ -147,6 +150,8 @@ steps: - "n=0\nwhile :\ndo\n docker login $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/ --username client --password \"$${REGISTRY_PASSWORD}\" \\\\\n && break # substitute your command here\n n=$((n+1))\n if [ $n -ge 10 ]; then\n echo \"login failed\"\n exit 1\n fi\n echo \"retrying login..$n\"\n sleep 5\ndone\n" - docker pull $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/guacamole/guacd:1.2.0 - docker save $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/guacamole/guacd:1.2.0 -o /root/images/guacamole/guacamole-guacd:1.2.0.tar + - echo "docker load guacamole-guacd:1.2.0.tar" >> /root/images/guacamole/load.sh + - echo "docker tag $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/guacamole/guacd:1.2.0 $1/guacamole/guacd:1.2.0" >> /root/images/guacamole/load.sh - name: guacamole/guacamole:1.2.0 image: appleboy/drone-ssh:1.6.2@sha256:b801dc2cd238c192b6e99acfa7bc3f5b9a03f312bd2feb1e10b3a7a28a1b80ea @@ -164,6 +169,8 @@ steps: - "n=0\nwhile :\ndo\n docker login $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/ --username client --password \"$${REGISTRY_PASSWORD}\" \\\\\n && break # substitute your command here\n n=$((n+1))\n if [ $n -ge 10 ]; then\n echo \"login failed\"\n exit 1\n fi\n echo \"retrying login..$n\"\n sleep 5\ndone\n" - docker pull $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/guacamole/guacamole:1.2.0 - docker save $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/guacamole/guacamole:1.2.0 -o /root/images/guacamole/guacamole-guacamole:1.2.0.tar + - echo "docker load guacamole-guacamole:1.2.0.tar" >> /root/images/guacamole/load.sh + - echo "docker tag $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/guacamole/guacamole:1.2.0 $1/guacamole/guacamole:1.2.0" >> /root/images/guacamole/load.sh trigger: event: