Add deployment files

pull/2/head
Linus Sehn 2022-12-14 12:42:13 +01:00
rodzic ca9d5f5945
commit a346c5c971
3 zmienionych plików z 66 dodań i 0 usunięć

38
.drone.yml 100644
Wyświetl plik

@ -0,0 +1,38 @@
---
# SPDX-FileCopyrightText: Free Software Foundation Europe e.V.
#
# SPDX-License-Identifier: GPL-3.0-or-later
kind: pipeline
name: default
steps:
- name: deploy
image: docker:20
environment:
XDG_RUNTIME_DIR: "/run/user/1001"
DOCKER_HOST: "unix:///run/user/1001/docker.sock"
commands:
- docker compose -p fedigov up --build -d
volumes:
- name: dockersock
path: /run/user/1001/docker.sock
when:
branch:
- main
event:
- push
- tag
- deployment
node:
cont1: plutex
volumes:
- name: dockersock
host:
path: /run/user/1001/docker.sock
---
kind: signature
hmac: 4340882636d0b9bb9ac974b8db7679b7f155ce98954de11417e64cc96198bf57

18
docker-compose.yml 100644
Wyświetl plik

@ -0,0 +1,18 @@
# SPDX-FileCopyrightText: Free Software Foundation Europe e.V.
#
# SPDX-License-Identifier: GPL-3.0-or-later
version: "3"
services:
publicom:
container_name: fedigov
build:
context: site
image: fedigov
restart: always
# Reverse Proxy
labels:
proxy.host: "fedigov.eu"
proxy.port: "9260"
ports:
- "9260:8043"

10
site/Dockerfile 100644
Wyświetl plik

@ -0,0 +1,10 @@
# SPDX-FileCopyrightText: Free Software Foundation Europe e.V.
#
# SPDX-License-Identifier: GPL-3.0-or-later
# Build site
FROM klakegg/hugo:0.101.0-ext-debian-onbuild AS hugo
# Serve site
FROM pierrezemb/gostatic
COPY --from=hugo /target/ /srv/http/