Add drone and dockerfile
This commit is contained in:
parent
e2e1fca9b8
commit
72f5caf0e0
4
Dockerfile
Normal file
4
Dockerfile
Normal 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
25
drone.yaml
Normal 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
|
||||||
|
|
||||||
|
---
|
Loading…
Reference in New Issue
Block a user