From 400a07e93d1de7f34e38d97375cffe00c6e83675 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Mon, 22 Jan 2024 19:01:53 +0100 Subject: [PATCH] Docker and drone file for deployment --- Dockerfile | 5 +++-- drone.yaml | 11 ++++++++--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7d7eecd..0d945fd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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/ diff --git a/drone.yaml b/drone.yaml index 82e1f3f..8666bf3 100644 --- a/drone.yaml +++ b/drone.yaml @@ -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