Init deployment

This commit is contained in:
Luke Murphy 2021-01-09 19:42:21 +01:00
parent 5ef20e059d
commit 3100e2ed99
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
5 changed files with 55 additions and 0 deletions

23
.drone.yml Normal file
View File

@ -0,0 +1,23 @@
---
kind: pipeline
name: deploy to swarm.autonomic.zone
steps:
- name: bundle static
image: plugins/docker
settings:
username:
from_secret: docker_reg_username
password:
from_secret: docker_reg_passwd
repo: decentral1se/cloud.autonomic.zone
tags: latest
- name: deployment
image: decentral1se/stack-ssh-deploy:latest
settings:
stack: cloud_autonomic_zone
deploy_key:
from_secret: drone_ssh_swarm.autonomic.zone
trigger:
branch:
- main

5
.env Normal file
View File

@ -0,0 +1,5 @@
TYPE=hugo
STACK_NAME=hugo
DOMAIN=cloud.autonomic.zone
LETS_ENCRYPT_ENV=production

5
.env.sample Normal file
View File

@ -0,0 +1,5 @@
TYPE=hugo
STACK_NAME=hugo
DOMAIN=cloud.autonomic.zone
LETS_ENCRYPT_ENV=production

7
Dockerfile Normal file
View File

@ -0,0 +1,7 @@
FROM klakegg/hugo:debian
EXPOSE 1313
COPY ./public /src
CMD ["server"]

15
compose.yml Normal file
View File

@ -0,0 +1,15 @@
---
version: "3.8"
services:
image: "decentral1se/cloud.autonomic.zone:latest"
deploy:
update_config:
failure_action: rollback
order: start-first
labels:
- "traefik.enable=true"
- "traefik.http.routers.cloud-autonomic-zone.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.cloud-autonomic-zone.entrypoints=web-secure"
- "traefik.http.services.cloud-autonomic-zone.loadbalancer.server.port=1313"
- "traefik.http.routers.cloud-autonomic-zone.tls.certresolver=${LETS_ENCRYPT_ENV}"