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 klakegg/hugo:alpine-onbuild AS hugo
FROM nginx:alpine FROM caddy:2-alpine
COPY --from=hugo /onbuild /usr/share/nginx/html
ADD src/ /usr/share/caddy/

View File

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