2020-08-28 20:53:01 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: register
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
clone:
|
|
|
|
disable: true
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
exclude:
|
|
|
|
- promote
|
|
|
|
|
2020-09-25 08:11:19 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: registry
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
2020-10-23 08:51:18 +00:00
|
|
|
clone:
|
|
|
|
disable: true
|
|
|
|
|
2020-09-25 08:11:19 +00:00
|
|
|
steps:
|
2020-10-23 08:51:18 +00:00
|
|
|
- name: alpine/git:v2.26.2
|
|
|
|
image: docker:19.03.12-dind@sha256:8dded163e463f4a59bf305b3dca98e312b2cfb89a43da3872e48f95a7554c48f
|
|
|
|
commands:
|
|
|
|
- set -e
|
|
|
|
- "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"
|
|
|
|
- "n=0\nwhile :\ndo\n docker pull alpine/git:v2.26.2@sha256:8715680f27333935bb384a678256faf8e8832a5f2a0d4a00c9d481111c5a29c0 \\\\\n && docker tag alpine/git:v2.26.2@sha256:8715680f27333935bb384a678256faf8e8832a5f2a0d4a00c9d481111c5a29c0 $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/stack/ghost/alpine/git:v2.26.2 \\\\\n && docker push $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/stack/ghost/alpine/git:v2.26.2 && break\n n=$((n+1))\n if [ $n -ge 10 ]; then\n echo \"initialise failed\"\n exit 1\n fi\n echo \"retrying..$n\"\n sleep 5\ndone\n"
|
|
|
|
volumes:
|
|
|
|
- name: dockersock
|
|
|
|
path: /var/run
|
|
|
|
|
|
|
|
- name: ghost:3.14.0
|
|
|
|
image: docker:19.03.12-dind@sha256:8dded163e463f4a59bf305b3dca98e312b2cfb89a43da3872e48f95a7554c48f
|
|
|
|
commands:
|
|
|
|
- set -e
|
|
|
|
- "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"
|
|
|
|
- "n=0\nwhile :\ndo\n docker pull ghost:3.14.0@sha256:38fb60af996dca89632e848c32e8c155d6dd20578c129752bd5449f99028fa92 \\\\\n && docker tag ghost:3.14.0@sha256:38fb60af996dca89632e848c32e8c155d6dd20578c129752bd5449f99028fa92 $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/stack/ghost/ghost:3.14.0 \\\\\n && docker push $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/stack/ghost/ghost:3.14.0 && break\n n=$((n+1))\n if [ $n -ge 10 ]; then\n echo \"initialise failed\"\n exit 1\n fi\n echo \"retrying..$n\"\n sleep 5\ndone\n"
|
|
|
|
volumes:
|
|
|
|
- name: dockersock
|
|
|
|
path: /var/run
|
|
|
|
|
|
|
|
- name: mysql:5.7
|
2020-09-25 08:11:19 +00:00
|
|
|
image: docker:19.03.12-dind@sha256:8dded163e463f4a59bf305b3dca98e312b2cfb89a43da3872e48f95a7554c48f
|
|
|
|
commands:
|
|
|
|
- set -e
|
2020-10-23 08:51:18 +00:00
|
|
|
- "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"
|
|
|
|
- "n=0\nwhile :\ndo\n docker pull mysql:5.7@sha256:ce6815027949d0b48e3097a94fa3ec062866a78868d50c7900c697c13574599f \\\\\n && docker tag mysql:5.7@sha256:ce6815027949d0b48e3097a94fa3ec062866a78868d50c7900c697c13574599f $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/stack/ghost/mysql:5.7 \\\\\n && docker push $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/stack/ghost/mysql:5.7 && break\n n=$((n+1))\n if [ $n -ge 10 ]; then\n echo \"initialise failed\"\n exit 1\n fi\n echo \"retrying..$n\"\n sleep 5\ndone\n"
|
2020-09-25 08:11:19 +00:00
|
|
|
volumes:
|
|
|
|
- name: dockersock
|
|
|
|
path: /var/run
|
|
|
|
|
|
|
|
services:
|
|
|
|
- name: docker
|
|
|
|
image: docker:19.03.12-dind@sha256:8dded163e463f4a59bf305b3dca98e312b2cfb89a43da3872e48f95a7554c48f
|
|
|
|
privileged: true
|
|
|
|
volumes:
|
|
|
|
- name: dockersock
|
|
|
|
path: /var/run
|
|
|
|
- name: ca
|
|
|
|
path: /etc/docker/certs.d
|
2020-10-22 14:52:00 +00:00
|
|
|
- name: daemonjson
|
|
|
|
path: /etc/docker/daemon.json
|
2020-09-25 08:11:19 +00:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: dockersock
|
|
|
|
temp: {}
|
|
|
|
- name: ca
|
|
|
|
host:
|
|
|
|
path: /etc/docker/certs.d
|
2020-10-22 14:52:00 +00:00
|
|
|
- name: daemonjson
|
|
|
|
host:
|
|
|
|
path: /etc/docker/daemon.json
|
2020-09-25 08:11:19 +00:00
|
|
|
|
|
|
|
image_pull_secrets:
|
|
|
|
- dockerconfigjson
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- promote
|
|
|
|
target:
|
|
|
|
- registry
|
|
|
|
|
2020-08-28 20:53:01 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2020-10-23 08:51:18 +00:00
|
|
|
name: save
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
clone:
|
|
|
|
disable: true
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: mkdir
|
|
|
|
image: appleboy/drone-ssh:1.6.2@sha256:b801dc2cd238c192b6e99acfa7bc3f5b9a03f312bd2feb1e10b3a7a28a1b80ea
|
|
|
|
settings:
|
|
|
|
envs:
|
|
|
|
- drone_tag
|
|
|
|
- drone_commit
|
|
|
|
- drone_build_number
|
|
|
|
- drone_repo_name
|
|
|
|
- drone_repo_namespace
|
|
|
|
script:
|
|
|
|
- mkdir -p /stack/.images/ghost/built
|
|
|
|
- rm -f /stack/.images/ghost/*.*
|
|
|
|
- rm -f /stack/.images/ghost/built/*.*
|
|
|
|
|
|
|
|
- name: alpine/git:v2.26.2
|
|
|
|
image: appleboy/drone-ssh:1.6.2@sha256:b801dc2cd238c192b6e99acfa7bc3f5b9a03f312bd2feb1e10b3a7a28a1b80ea
|
|
|
|
settings:
|
|
|
|
envs:
|
|
|
|
- drone_tag
|
|
|
|
- drone_commit
|
|
|
|
- drone_build_number
|
|
|
|
- drone_repo_name
|
|
|
|
- drone_repo_namespace
|
|
|
|
- registry_domain
|
|
|
|
- registry_port
|
|
|
|
- registry_password
|
|
|
|
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 /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
|
|
|
|
settings:
|
|
|
|
envs:
|
|
|
|
- drone_tag
|
|
|
|
- drone_commit
|
|
|
|
- drone_build_number
|
|
|
|
- drone_repo_name
|
|
|
|
- drone_repo_namespace
|
|
|
|
- registry_domain
|
|
|
|
- registry_port
|
|
|
|
- registry_password
|
|
|
|
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 /stack/DOLLAR1/ghost:3.14.0" >> /stack/.images/ghost/load.sh
|
|
|
|
|
|
|
|
- name: mysql:5.7
|
|
|
|
image: appleboy/drone-ssh:1.6.2@sha256:b801dc2cd238c192b6e99acfa7bc3f5b9a03f312bd2feb1e10b3a7a28a1b80ea
|
|
|
|
settings:
|
|
|
|
envs:
|
|
|
|
- drone_tag
|
|
|
|
- drone_commit
|
|
|
|
- drone_build_number
|
|
|
|
- drone_repo_name
|
|
|
|
- drone_repo_namespace
|
|
|
|
- registry_domain
|
|
|
|
- registry_port
|
|
|
|
- registry_password
|
|
|
|
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 /stack/DOLLAR1/mysql:5.7" >> /stack/.images/ghost/load.sh
|
|
|
|
|
|
|
|
- name: my-ghost
|
|
|
|
image: appleboy/drone-ssh:1.6.2@sha256:b801dc2cd238c192b6e99acfa7bc3f5b9a03f312bd2feb1e10b3a7a28a1b80ea
|
|
|
|
settings:
|
|
|
|
envs:
|
|
|
|
- drone_tag
|
|
|
|
- drone_commit
|
|
|
|
- drone_build_number
|
|
|
|
- drone_repo_name
|
|
|
|
- drone_repo_namespace
|
|
|
|
- registry_domain
|
|
|
|
- registry_port
|
|
|
|
- registry_password
|
|
|
|
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 /stack/DOLLAR1/my-ghost" >> /stack/.images/ghost/built/load.sh
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- promote
|
|
|
|
target:
|
|
|
|
- save
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: print
|
2020-08-28 20:53:01 +00:00
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: print env
|
|
|
|
image: appleboy/drone-ssh:1.6.2@sha256:b801dc2cd238c192b6e99acfa7bc3f5b9a03f312bd2feb1e10b3a7a28a1b80ea
|
|
|
|
settings:
|
|
|
|
envs:
|
|
|
|
- drone_tag
|
|
|
|
- drone_commit
|
|
|
|
- drone_build_number
|
|
|
|
- drone_repo_name
|
|
|
|
- drone_repo_namespace
|
|
|
|
- mail_service
|
|
|
|
- mail_user
|
|
|
|
- commento_origin
|
2020-10-22 15:07:21 +00:00
|
|
|
- theme
|
2020-08-28 20:53:01 +00:00
|
|
|
- mysql_root_password
|
|
|
|
script:
|
|
|
|
- rm -f env-ghost
|
|
|
|
- "echo \"export MAIL_SERVICE='$${MAIL_SERVICE}'\" >> env-ghost # \"mail-service\""
|
|
|
|
- "echo \"export MAIL_USER='$${MAIL_USER}'\" >> env-ghost # \"mail-user\""
|
|
|
|
- "echo \"export COMMENTO_ORIGIN='$${COMMENTO_ORIGIN}'\" >> env-ghost # \"commento-origin\""
|
2020-10-22 15:07:21 +00:00
|
|
|
- "echo \"export THEME='$${THEME}'\" >> env-ghost # \"theme\""
|
2020-08-28 20:53:01 +00:00
|
|
|
- "echo \"export MYSQL_ROOT_PASSWORD='$${MYSQL_ROOT_PASSWORD}'\" >> env-ghost # \"mysql-root-password\""
|
|
|
|
environment:
|
|
|
|
COMMENTO_ORIGIN:
|
|
|
|
from_secret: commento-origin
|
|
|
|
MAIL_SERVICE:
|
|
|
|
from_secret: mail-service
|
|
|
|
MAIL_USER:
|
|
|
|
from_secret: mail-user
|
|
|
|
MYSQL_ROOT_PASSWORD:
|
|
|
|
from_secret: mysql-root-password
|
2020-10-22 15:07:21 +00:00
|
|
|
THEME:
|
|
|
|
from_secret: theme
|
2020-08-28 20:53:01 +00:00
|
|
|
|
2020-10-23 08:51:18 +00:00
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- promote
|
|
|
|
target:
|
|
|
|
- print
|
2020-08-28 20:53:01 +00:00
|
|
|
|
2020-10-23 08:51:18 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: build
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
2020-08-28 20:53:01 +00:00
|
|
|
|
2020-10-23 08:51:18 +00:00
|
|
|
steps:
|
2020-08-28 20:53:01 +00:00
|
|
|
- name: "dockerbuild:"
|
|
|
|
image: docker:19.03.12-dind@sha256:8dded163e463f4a59bf305b3dca98e312b2cfb89a43da3872e48f95a7554c48f
|
|
|
|
commands:
|
|
|
|
- set -e
|
2020-10-23 08:51:18 +00:00
|
|
|
- export NAME=ghost
|
|
|
|
- export ROOT=stack
|
|
|
|
- "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"
|
2020-08-28 20:53:01 +00:00
|
|
|
- sh .drone/build.sh
|
|
|
|
- sh .drone/push.sh
|
2020-10-22 15:16:00 +00:00
|
|
|
environment:
|
|
|
|
THEME:
|
|
|
|
from_secret: theme
|
2020-08-28 20:53:01 +00:00
|
|
|
volumes:
|
|
|
|
- name: dockersock
|
|
|
|
path: /var/run
|
|
|
|
|
2020-10-23 08:51:18 +00:00
|
|
|
services:
|
|
|
|
- name: docker
|
|
|
|
image: docker:19.03.12-dind@sha256:8dded163e463f4a59bf305b3dca98e312b2cfb89a43da3872e48f95a7554c48f
|
|
|
|
privileged: true
|
|
|
|
volumes:
|
|
|
|
- name: dockersock
|
|
|
|
path: /var/run
|
|
|
|
- name: ca
|
|
|
|
path: /etc/docker/certs.d
|
|
|
|
- name: daemonjson
|
|
|
|
path: /etc/docker/daemon.json
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: dockersock
|
|
|
|
temp: {}
|
|
|
|
- name: ca
|
|
|
|
host:
|
|
|
|
path: /etc/docker/certs.d
|
|
|
|
- name: daemonjson
|
|
|
|
host:
|
|
|
|
path: /etc/docker/daemon.json
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- promote
|
|
|
|
target:
|
|
|
|
- build
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: deploy
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: scp
|
|
|
|
image: appleboy/drone-scp:1.6.2@sha256:bd37a55f4b97e7742b0de7333669b96220b3cc422d366e1fa8c34059b736ab47
|
|
|
|
settings:
|
|
|
|
command_timeout: 2m
|
|
|
|
source:
|
|
|
|
- .
|
|
|
|
target: /stack/ghost
|
|
|
|
|
2020-08-28 20:53:01 +00:00
|
|
|
- name: deploy
|
|
|
|
image: appleboy/drone-ssh:1.6.2@sha256:b801dc2cd238c192b6e99acfa7bc3f5b9a03f312bd2feb1e10b3a7a28a1b80ea
|
|
|
|
settings:
|
|
|
|
envs:
|
|
|
|
- drone_tag
|
|
|
|
- drone_commit
|
|
|
|
- drone_build_number
|
|
|
|
- drone_repo_name
|
|
|
|
- drone_repo_namespace
|
2020-10-22 15:07:21 +00:00
|
|
|
- scheme
|
2020-08-28 20:53:01 +00:00
|
|
|
- domain
|
|
|
|
- registry_domain
|
|
|
|
- registry_port
|
|
|
|
- registry_password
|
|
|
|
- mail_service
|
|
|
|
- mail_user
|
|
|
|
- commento_origin
|
2020-10-22 15:07:21 +00:00
|
|
|
- theme
|
2020-08-28 20:53:01 +00:00
|
|
|
- mysql_root_password
|
2020-10-22 15:16:00 +00:00
|
|
|
- theme
|
2020-08-28 20:53:01 +00:00
|
|
|
script:
|
|
|
|
- export MYSQL_ROOT_PASSWORD=$${MYSQL_ROOT_PASSWORD}
|
|
|
|
- export MAIL_SERVICE=$${MAIL_SERVICE}
|
|
|
|
- export MAIL_USER=$${MAIL_USER}
|
|
|
|
- export COMMENTO_ORIGIN=$${COMMENTO_ORIGIN}
|
2020-10-22 15:07:21 +00:00
|
|
|
- export THEME=$${THEME}
|
2020-10-22 15:16:00 +00:00
|
|
|
- export THEME=$${THEME}
|
2020-10-22 14:35:59 +00:00
|
|
|
- export SCHEME=$${SCHEME}
|
2020-08-28 20:53:01 +00:00
|
|
|
- export DOMAIN=$${DOMAIN}
|
|
|
|
- export REGISTRY_DOMAIN=$${REGISTRY_DOMAIN}
|
|
|
|
- export REGISTRY_PORT=$${REGISTRY_PORT}
|
|
|
|
- export REGISTRY_PASSWORD=$${REGISTRY_PASSWORD}
|
|
|
|
- set -e
|
2020-10-23 08:51:18 +00:00
|
|
|
- export NAME=ghost
|
|
|
|
- export ROOT=stack
|
2020-08-28 20:53:01 +00:00
|
|
|
- cd /stack/ghost
|
2020-10-23 08:51:18 +00:00
|
|
|
- "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"
|
2020-08-28 20:53:01 +00:00
|
|
|
- sh .drone/pull.sh
|
|
|
|
- sh .drone/deploy.sh
|
|
|
|
environment:
|
|
|
|
COMMENTO_ORIGIN:
|
|
|
|
from_secret: commento-origin
|
|
|
|
MAIL_SERVICE:
|
|
|
|
from_secret: mail-service
|
|
|
|
MAIL_USER:
|
|
|
|
from_secret: mail-user
|
|
|
|
MYSQL_ROOT_PASSWORD:
|
|
|
|
from_secret: mysql-root-password
|
2020-10-22 15:07:21 +00:00
|
|
|
THEME:
|
|
|
|
from_secret: theme
|
2020-08-28 20:53:01 +00:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- promote
|
2020-10-23 08:51:18 +00:00
|
|
|
- promote
|
2020-08-28 20:53:01 +00:00
|
|
|
target:
|
2020-10-23 08:51:18 +00:00
|
|
|
- deploy
|
2020-08-28 20:53:01 +00:00
|
|
|
- production
|
|
|
|
|
|
|
|
...
|