|
|
|
@ -128,13 +128,12 @@ steps:
|
|
|
|
|
- registry_domain
|
|
|
|
|
- registry_port
|
|
|
|
|
- registry_password
|
|
|
|
|
- destination_registry
|
|
|
|
|
script:
|
|
|
|
|
- "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}/stack/ghost/alpine/git:v2.26.2
|
|
|
|
|
- docker save $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/stack/ghost/alpine/git:v2.26.2 -o /stack/.images/ghost/alpine_git:v2.26.2.tar
|
|
|
|
|
- echo "docker load < alpine_git:v2.26.2.tar" >> /stack/.images/ghost/load.sh
|
|
|
|
|
- echo "docker tag $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/stack/ghost/alpine/git:v2.26.2 $${DESTINATION_REGISTRY}/stack/ghost/alpine/git:v2.26.2" >> /stack/.images/ghost/load.sh
|
|
|
|
|
- echo "docker load alpine_git:v2.26.2.tar" >> /stack/.images/ghost/load.sh
|
|
|
|
|
- echo "docker tag $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/stack/ghost/alpine/git:v2.26.2 /stack/DOLLAR1/alpine/git:v2.26.2" >> /stack/.images/ghost/load.sh
|
|
|
|
|
|
|
|
|
|
- name: ghost:3.14.0
|
|
|
|
|
image: appleboy/drone-ssh:1.6.2@sha256:b801dc2cd238c192b6e99acfa7bc3f5b9a03f312bd2feb1e10b3a7a28a1b80ea
|
|
|
|
@ -148,13 +147,12 @@ steps:
|
|
|
|
|
- registry_domain
|
|
|
|
|
- registry_port
|
|
|
|
|
- registry_password
|
|
|
|
|
- destination_registry
|
|
|
|
|
script:
|
|
|
|
|
- "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}/stack/ghost/ghost:3.14.0
|
|
|
|
|
- docker save $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/stack/ghost/ghost:3.14.0 -o /stack/.images/ghost/ghost:3.14.0.tar
|
|
|
|
|
- echo "docker load < ghost:3.14.0.tar" >> /stack/.images/ghost/load.sh
|
|
|
|
|
- echo "docker tag $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/stack/ghost/ghost:3.14.0 $${DESTINATION_REGISTRY}/stack/ghost/ghost:3.14.0" >> /stack/.images/ghost/load.sh
|
|
|
|
|
- echo "docker load ghost:3.14.0.tar" >> /stack/.images/ghost/load.sh
|
|
|
|
|
- echo "docker tag $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/stack/ghost/ghost:3.14.0 /stack/DOLLAR1/ghost:3.14.0" >> /stack/.images/ghost/load.sh
|
|
|
|
|
|
|
|
|
|
- name: mysql:5.7
|
|
|
|
|
image: appleboy/drone-ssh:1.6.2@sha256:b801dc2cd238c192b6e99acfa7bc3f5b9a03f312bd2feb1e10b3a7a28a1b80ea
|
|
|
|
@ -168,13 +166,12 @@ steps:
|
|
|
|
|
- registry_domain
|
|
|
|
|
- registry_port
|
|
|
|
|
- registry_password
|
|
|
|
|
- destination_registry
|
|
|
|
|
script:
|
|
|
|
|
- "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}/stack/ghost/mysql:5.7
|
|
|
|
|
- docker save $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/stack/ghost/mysql:5.7 -o /stack/.images/ghost/mysql:5.7.tar
|
|
|
|
|
- echo "docker load < mysql:5.7.tar" >> /stack/.images/ghost/load.sh
|
|
|
|
|
- echo "docker tag $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/stack/ghost/mysql:5.7 $${DESTINATION_REGISTRY}/stack/ghost/mysql:5.7" >> /stack/.images/ghost/load.sh
|
|
|
|
|
- echo "docker load mysql:5.7.tar" >> /stack/.images/ghost/load.sh
|
|
|
|
|
- echo "docker tag $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/stack/ghost/mysql:5.7 /stack/DOLLAR1/mysql:5.7" >> /stack/.images/ghost/load.sh
|
|
|
|
|
|
|
|
|
|
- name: my-ghost
|
|
|
|
|
image: appleboy/drone-ssh:1.6.2@sha256:b801dc2cd238c192b6e99acfa7bc3f5b9a03f312bd2feb1e10b3a7a28a1b80ea
|
|
|
|
@ -188,13 +185,12 @@ steps:
|
|
|
|
|
- registry_domain
|
|
|
|
|
- registry_port
|
|
|
|
|
- registry_password
|
|
|
|
|
- destination_registry
|
|
|
|
|
script:
|
|
|
|
|
- "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}/stack/ghost/my-ghost
|
|
|
|
|
- docker save $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/stack/ghost/my-ghost -o /stack/.images/ghost/built/my-ghost.tar
|
|
|
|
|
- echo "docker load my-ghost.tar" >> /stack/.images/ghost/built/load.sh
|
|
|
|
|
- echo "docker tag $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/stack/ghost/my-ghost ${DESINATION_REGISTRY}/stack/ghost/my-ghost" >> /stack/.images/ghost/built/load.sh
|
|
|
|
|
- echo "docker tag $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/stack/ghost/my-ghost /stack/DOLLAR1/my-ghost" >> /stack/.images/ghost/built/load.sh
|
|
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
|
event:
|
|
|
|
@ -221,25 +217,32 @@ steps:
|
|
|
|
|
- drone_build_number
|
|
|
|
|
- drone_repo_name
|
|
|
|
|
- drone_repo_namespace
|
|
|
|
|
- mail
|
|
|
|
|
- mail_service
|
|
|
|
|
- mail_user
|
|
|
|
|
- commento_origin
|
|
|
|
|
- theme
|
|
|
|
|
- mysql_root_password
|
|
|
|
|
script:
|
|
|
|
|
- rm -f env-ghost
|
|
|
|
|
- "echo \"export MAIL='$${MAIL}'\" >> env-ghost # \"mail\""
|
|
|
|
|
- "echo \"export MAIL_SERVICE='$${MAIL_SERVICE}'\" >> env-ghost # \"mail-service\""
|
|
|
|
|
- "echo \"export MAIL_USER='$${MAIL_USER}'\" >> env-ghost # \"mail-user\""
|
|
|
|
|
- "echo \"export MAIL_PASSWORD='$${MAIL_PASSWORD}'\" >> env-ghost # \"mail-password\""
|
|
|
|
|
- "echo \"export COMMENTO_ORIGIN='$${COMMENTO_ORIGIN}'\" >> env-ghost # \"commento-origin\""
|
|
|
|
|
- "echo \"export THEME='$${THEME}'\" >> env-ghost # \"theme\""
|
|
|
|
|
- "echo \"export MYSQL_ROOT_PASSWORD='$${MYSQL_ROOT_PASSWORD}'\" >> env-ghost # \"mysql-root-password\""
|
|
|
|
|
environment:
|
|
|
|
|
COMMENTO_ORIGIN:
|
|
|
|
|
from_secret: commento-origin
|
|
|
|
|
MAIL:
|
|
|
|
|
from_secret: mail
|
|
|
|
|
MAIL_SERVICE:
|
|
|
|
|
from_secret: mail-service
|
|
|
|
|
MAIL_USER:
|
|
|
|
|
from_secret: mail-user
|
|
|
|
|
MYSQL_ROOT_PASSWORD:
|
|
|
|
|
from_secret: mysql-root-password
|
|
|
|
|
THEME:
|
|
|
|
|
from_secret: theme
|
|
|
|
|
MAIL_PASSWORD:
|
|
|
|
|
from_secret: mail-password
|
|
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
|
event:
|
|
|
|
@ -333,16 +336,19 @@ steps:
|
|
|
|
|
- registry_domain
|
|
|
|
|
- registry_port
|
|
|
|
|
- registry_password
|
|
|
|
|
- mail
|
|
|
|
|
- mail_service
|
|
|
|
|
- mail_user
|
|
|
|
|
- commento_origin
|
|
|
|
|
- theme
|
|
|
|
|
- mysql_root_password
|
|
|
|
|
- theme
|
|
|
|
|
script:
|
|
|
|
|
- export MYSQL_ROOT_PASSWORD=$${MYSQL_ROOT_PASSWORD}
|
|
|
|
|
- export MAIL=$${MAIL}
|
|
|
|
|
- export MAIL_SERVICE=$${MAIL_SERVICE}
|
|
|
|
|
- export MAIL_USER=$${MAIL_USER}
|
|
|
|
|
- export COMMENTO_ORIGIN=$${COMMENTO_ORIGIN}
|
|
|
|
|
- export THEME=$${THEME}
|
|
|
|
|
- export THEME=$${THEME}
|
|
|
|
|
- export SCHEME=$${SCHEME}
|
|
|
|
|
- export DOMAIN=$${DOMAIN}
|
|
|
|
|
- export REGISTRY_DOMAIN=$${REGISTRY_DOMAIN}
|
|
|
|
@ -358,8 +364,10 @@ steps:
|
|
|
|
|
environment:
|
|
|
|
|
COMMENTO_ORIGIN:
|
|
|
|
|
from_secret: commento-origin
|
|
|
|
|
MAIL:
|
|
|
|
|
from_secret: mail
|
|
|
|
|
MAIL_SERVICE:
|
|
|
|
|
from_secret: mail-service
|
|
|
|
|
MAIL_USER:
|
|
|
|
|
from_secret: mail-user
|
|
|
|
|
MYSQL_ROOT_PASSWORD:
|
|
|
|
|
from_secret: mysql-root-password
|
|
|
|
|
THEME:
|
|
|
|
|