Add drone and dockerfile

This commit is contained in:
Julie Lenaerts 2024-01-22 15:24:20 +01:00
parent e2e1fca9b8
commit 72f5caf0e0
2 changed files with 29 additions and 0 deletions

4
Dockerfile Normal file
View File

@ -0,0 +1,4 @@
FROM klakegg/hugo:alpine-onbuild AS hugo
FROM nginx:alpine
COPY --from=hugo /onbuild /usr/share/nginx/html

25
drone.yaml Normal file
View File

@ -0,0 +1,25 @@
---
kind: pipeline
type: docker
name: default
trigger:
event:
- tag
steps:
- name: build-hugo-website
image: hugomods/hugo:latest
settings:
registry: h3m6q87t.gra7.container-registry.ovh.net
username:
from_secret: docker_username
password:
from_secret: docker_password
dockerfile: ./Dockerfile
context: ./
repo: h3m6q87t.gra7.container-registry.ovh.net/chill-website
tag: ${DRONE_TAG:=latest}
pull_image: true
---