Docker and drone file for deployment
This commit is contained in:
parent
e1a79b3a71
commit
400a07e93d
@ -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/
|
||||
|
11
drone.yaml
11
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user