diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7d7eecd --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM klakegg/hugo:alpine-onbuild AS hugo + +FROM nginx:alpine +COPY --from=hugo /onbuild /usr/share/nginx/html diff --git a/drone.yaml b/drone.yaml new file mode 100644 index 0000000..82e1f3f --- /dev/null +++ b/drone.yaml @@ -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 + +---