Compare commits
1 Commits
master
...
test-at-ho
Author | SHA1 | Date |
---|---|---|
giles | aa8bb4babb |
|
@ -1,4 +1,4 @@
|
||||||
docker build ghost -t ${REGISTRY_DOMAIN}:${REGISTRY_PORT}/${ROOT}/${NAME}/my-ghost \
|
docker build ghost -t ${REGISTRY_DOMAIN}:${REGISTRY_PORT}/${ROOT}/${NAME}/my-ghost \
|
||||||
--build-arg REGISTRY=${REGISTRY_DOMAIN}:${REGISTRY_PORT}/${ROOT}/${NAME}/ \
|
--build-arg REGISTRY=\ #${REGISTRY_DOMAIN}:${REGISTRY_PORT}/ \
|
||||||
--build-arg THEME=${THEME}
|
--build-arg THEME=${THEME}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
export LOCAL_DOCKER_REGISTRY=${REGISTRY_DOMAIN}:${REGISTRY_PORT}/${ROOT}/${NAME}/ \
|
export LOCAL_DOCKER_REGISTRY=${REGISTRY_DOMAIN}:${REGISTRY_PORT}/${ROOT}/${NAME}/ \
|
||||||
|
&& echo $NAME \
|
||||||
&& echo "scheme: ${SCHEME}" \
|
&& echo "scheme: ${SCHEME}" \
|
||||||
&& docker stack rm ghost \
|
&& docker stack rm ghost \
|
||||||
&& echo 'sleeping...zzz' \
|
&& echo 'sleeping...zzz' \
|
||||||
|
|
|
@ -103,7 +103,7 @@ clone:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: mkdir
|
- name: mkdir
|
||||||
image: appleboy/drone-ssh:1.6.2@sha256:b801dc2cd238c192b6e99acfa7bc3f5b9a03f312bd2feb1e10b3a7a28a1b80ea
|
image: appleboy/drone-ssh:1.6.3
|
||||||
settings:
|
settings:
|
||||||
envs:
|
envs:
|
||||||
- drone_tag
|
- drone_tag
|
||||||
|
@ -117,7 +117,7 @@ steps:
|
||||||
- rm -f /stack/.images/ghost/built/*.*
|
- rm -f /stack/.images/ghost/built/*.*
|
||||||
|
|
||||||
- name: alpine/git:v2.26.2
|
- name: alpine/git:v2.26.2
|
||||||
image: appleboy/drone-ssh:1.6.2@sha256:b801dc2cd238c192b6e99acfa7bc3f5b9a03f312bd2feb1e10b3a7a28a1b80ea
|
image: appleboy/drone-ssh:1.6.3
|
||||||
settings:
|
settings:
|
||||||
envs:
|
envs:
|
||||||
- drone_tag
|
- drone_tag
|
||||||
|
@ -137,7 +137,7 @@ steps:
|
||||||
- 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 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
|
||||||
|
|
||||||
- name: ghost:3.14.0
|
- name: ghost:3.14.0
|
||||||
image: appleboy/drone-ssh:1.6.2@sha256:b801dc2cd238c192b6e99acfa7bc3f5b9a03f312bd2feb1e10b3a7a28a1b80ea
|
image: appleboy/drone-ssh:1.6.3
|
||||||
settings:
|
settings:
|
||||||
envs:
|
envs:
|
||||||
- drone_tag
|
- drone_tag
|
||||||
|
@ -157,7 +157,7 @@ steps:
|
||||||
- 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 tag $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/stack/ghost/ghost:3.14.0 $${DESTINATION_REGISTRY}/stack/ghost/ghost:3.14.0" >> /stack/.images/ghost/load.sh
|
||||||
|
|
||||||
- name: mysql:5.7
|
- name: mysql:5.7
|
||||||
image: appleboy/drone-ssh:1.6.2@sha256:b801dc2cd238c192b6e99acfa7bc3f5b9a03f312bd2feb1e10b3a7a28a1b80ea
|
image: appleboy/drone-ssh:1.6.3
|
||||||
settings:
|
settings:
|
||||||
envs:
|
envs:
|
||||||
- drone_tag
|
- drone_tag
|
||||||
|
@ -177,7 +177,7 @@ steps:
|
||||||
- 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 tag $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/stack/ghost/mysql:5.7 $${DESTINATION_REGISTRY}/stack/ghost/mysql:5.7" >> /stack/.images/ghost/load.sh
|
||||||
|
|
||||||
- name: my-ghost
|
- name: my-ghost
|
||||||
image: appleboy/drone-ssh:1.6.2@sha256:b801dc2cd238c192b6e99acfa7bc3f5b9a03f312bd2feb1e10b3a7a28a1b80ea
|
image: appleboy/drone-ssh:1.6.3
|
||||||
settings:
|
settings:
|
||||||
envs:
|
envs:
|
||||||
- drone_tag
|
- drone_tag
|
||||||
|
@ -213,7 +213,7 @@ platform:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: print env
|
- name: print env
|
||||||
image: appleboy/drone-ssh:1.6.2@sha256:b801dc2cd238c192b6e99acfa7bc3f5b9a03f312bd2feb1e10b3a7a28a1b80ea
|
image: appleboy/drone-ssh:1.6.3
|
||||||
settings:
|
settings:
|
||||||
envs:
|
envs:
|
||||||
- drone_tag
|
- drone_tag
|
||||||
|
@ -324,7 +324,7 @@ steps:
|
||||||
target: /stack/ghost
|
target: /stack/ghost
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: appleboy/drone-ssh:1.6.2@sha256:b801dc2cd238c192b6e99acfa7bc3f5b9a03f312bd2feb1e10b3a7a28a1b80ea
|
image: appleboy/drone-ssh:1.6.3
|
||||||
settings:
|
settings:
|
||||||
envs:
|
envs:
|
||||||
- drone_tag
|
- drone_tag
|
||||||
|
|
|
@ -28,10 +28,10 @@ services:
|
||||||
- database__connection__database=ghost
|
- database__connection__database=ghost
|
||||||
- database__pool__min=0 # https://github.com/knex/knex/issues/975
|
- database__pool__min=0 # https://github.com/knex/knex/issues/975
|
||||||
networks:
|
networks:
|
||||||
- appnet
|
|
||||||
- externalnet
|
- externalnet
|
||||||
|
- appnet
|
||||||
ghost-mysql:
|
ghost-mysql:
|
||||||
image: ${LOCAL_DOCKER_REGISTRY}mysql:5.7
|
image: ${DOCKER_REGISTRY}mysql:5.7
|
||||||
deploy:
|
deploy:
|
||||||
placement:
|
placement:
|
||||||
constraints: [node.labels.com.sigyl.git-stack-data == yes]
|
constraints: [node.labels.com.sigyl.git-stack-data == yes]
|
||||||
|
@ -60,3 +60,4 @@ networks:
|
||||||
externalnet:
|
externalnet:
|
||||||
driver: overlay
|
driver: overlay
|
||||||
external: true
|
external: true
|
||||||
|
name: externalnet
|
||||||
|
|
|
@ -1,14 +1,17 @@
|
||||||
ARG REGISTRY
|
|
||||||
|
|
||||||
|
##ARG REGISTRY
|
||||||
FROM ${REGISTRY}alpine/git:v2.26.2 as git
|
FROM ${REGISTRY}alpine/git:v2.26.2 as git
|
||||||
|
|
||||||
WORKDIR /themes
|
WORKDIR /themes
|
||||||
ARG THEME=https://sigyl.com/git/themes/casper.git
|
ARG THEME=https://sigyl.com/git/themes/casper.git
|
||||||
RUN git clone ${THEME}
|
RUN git clone ${THEME}
|
||||||
|
|
||||||
FROM ${REGISTRY}ghost:3.14.0
|
FROM ${REGISTRY}ghost:2-alpine
|
||||||
# USER root
|
# USER root
|
||||||
RUN apt-get update
|
|
||||||
RUN apt-get install -y gettext
|
RUN apk update
|
||||||
|
RUN apk add gettext
|
||||||
|
|
||||||
COPY config.production.json.template /var/lib/ghost/
|
COPY config.production.json.template /var/lib/ghost/
|
||||||
COPY --from=git /themes/ /var/lib/ghost/content/themes/
|
COPY --from=git /themes/ /var/lib/ghost/content/themes/
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
envsubst < /var/lib/ghost/config.production.json.template > /var/lib/ghost/config.production.json
|
envsubst < /var/lib/ghost/config.production.json.template > /var/lib/ghost/config.production.json
|
||||||
envsubst < /hbs/post.hbs > /var/lib/ghost/content/themes/casper/post.hbs
|
envsubst < /hbs/post.hbs > /var/lib/ghost/content/themes/casper/post.hbs
|
||||||
|
export DEBUG=*
|
||||||
node "current/index.js"
|
node "current/index.js"
|
||||||
|
|
Loading…
Reference in New Issue