added build files

This commit is contained in:
Roxie Gibson 2022-02-16 01:00:54 +00:00
parent 1d954a11f4
commit dae3d25736
Signed by: roxxers
GPG Key ID: 5D0140EDEE123F4D
3 changed files with 50 additions and 0 deletions

28
.drone.yml Normal file
View File

@ -0,0 +1,28 @@
---
kind: pipeline
type: docker
name: deployment
steps:
- name: docker build hexbomb.gay
image: plugins/docker
settings:
username: thecoopcloud
password:
from_secret: docker_reg_passwd_coopcloud
repo: thecoopcloud/hexbomb.gay
tags: latest
- name: deployment hexbomb.gay
image: thecoopcloud/stack-ssh-deploy:latest
settings:
stack: cfa-techdoc_${DRONE_BRANCH}
reg_user:
from_secret: docker_reg_username_coopcloud
reg_pass:
from_secret: docker_reg_passwd_coopcloud
deploy_key:
from_secret: drone_ssh_swarm.autonomic.zone
rm: true
host: swarm.autonomic.zone
compose: compose.yml
image: thecoopcloud/hexbomb.gay

3
Dockerfile Normal file
View File

@ -0,0 +1,3 @@
FROM nginx:1.21.4
COPY ./ /usr/share/nginx/html

19
compose.yml Normal file
View File

@ -0,0 +1,19 @@
version: "3.8"
services:
web:
image: thecoopcloud/hexbomb.gay:latest
networks:
- proxy
deploy:
labels:
- "traefik.enable=true"
- "traefik.http.services.hexbomb_gay.loadbalancer.server.port=80"
- "traefik.http.routers.hexbomb_gay.rule=Host(`www.hexbomb.gay`)"
- "traefik.http.routers.hexbomb_gay.entrypoints=web-secure"
- "traefik.http.routers.hexbomb_gay.tls.certresolver=production"
networks:
proxy:
external: true