home
continuous-integration/drone/push Build was killed Details

This commit is contained in:
Giles Bradshaw 2020-04-18 09:18:48 +01:00
parent 679bcbfdc2
commit 38e77371ea
6 changed files with 55 additions and 0 deletions

View File

@ -65,6 +65,20 @@ steps:
- cd letsencrypt-nginx - cd letsencrypt-nginx
- docker build . -t $${LOCAL_DOCKER_REGISTRY}letsencrypt-nginx - docker build . -t $${LOCAL_DOCKER_REGISTRY}letsencrypt-nginx
- docker push $${LOCAL_DOCKER_REGISTRY}letsencrypt-nginx - docker push $${LOCAL_DOCKER_REGISTRY}letsencrypt-nginx
- name: build-nginx-home
when:
branch:
- home-deploy
image: docker:dind
volumes:
- name: dockersock
path: /var/run
environment:
LOCAL_DOCKER_REGISTRY:
from_secret: local-docker-registry
commands:
- cd letsencrypt-nginx
- sh build.home.sh
- name: build-letsencrypt-blog - name: build-letsencrypt-blog
when: when:
branch: branch:

View File

@ -334,6 +334,19 @@ services:
volumes: volumes:
- mongo-chat:/data/db - mongo-chat:/data/db
command: mongod --smallfiles --replSet rs0 --oplogSize 128 command: mongod --smallfiles --replSet rs0 --oplogSize 128
nginx-home:
deploy:
placement:
constraints: [node.labels.com.sigyl.git-stack == yes]
replicas: 1
restart_policy:
condition: any
image: ${LOCAL_DOCKER_REGISTRY}nginx-home
environment:
- SERVER_NAME=${BLOG_DOMAIN}
ports:
- 80:80
volumes: volumes:
gitea-app: gitea-app:
gitea-db: gitea-db:

View File

@ -0,0 +1,4 @@
ARG image
FROM $image
COPY ./conf/home.conf /etc/nginx/user.conf.d/server._conf
COPY ./website /www/data

View File

@ -0,0 +1,3 @@
set -e
docker build . -f Dockerfile.home --build-arg image=nginx:latest -t sigyl.com:5001/nginx-home
docker push sigyl.com:5001/nginx-home

View File

@ -0,0 +1,20 @@
server {
# resolver 127.0.0.11 valid=30s; ## internal docker dns
#listen [::]:3011 default ipv6only=on; ## listen for ipv6
listen 80;
client_header_timeout 120s;
client_body_timeout 120s;
client_max_body_size 200m;
# save logs here
root /www/data;
location / {
}
}

View File

@ -0,0 +1 @@
<h1>SiGyl Ltd</h1>