Docker and drone file for deployment

This commit is contained in:
Julie Lenaerts 2024-01-22 19:01:53 +01:00
parent e1a79b3a71
commit 400a07e93d
2 changed files with 11 additions and 5 deletions

View File

@ -1,4 +1,5 @@
FROM klakegg/hugo:alpine-onbuild AS hugo
FROM nginx:alpine
COPY --from=hugo /onbuild /usr/share/nginx/html
FROM caddy:2-alpine
ADD src/ /usr/share/caddy/

View File

@ -8,8 +8,13 @@ trigger:
- tag
steps:
- name: build-hugo-website
image: hugomods/hugo:latest
- name: build-hugo
image: ariejan/drone-hugo
settings:
hugo_version: 0.65.3
- name: build-docker-caddy
image: plugins/docker
settings:
registry: h3m6q87t.gra7.container-registry.ovh.net
username:
@ -18,7 +23,7 @@ steps:
from_secret: docker_password
dockerfile: ./Dockerfile
context: ./
repo: h3m6q87t.gra7.container-registry.ovh.net/chill-website
repo: h3m6q87t.gra7.container-registry.ovh.net/chill_website
tag: ${DRONE_TAG:=latest}
pull_image: true