Add drone yaml
This commit is contained in:
parent
09c702e2ba
commit
3380add83e
54
.drone.yml
Normal file
54
.drone.yml
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: default
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
event:
|
||||||
|
include:
|
||||||
|
- push
|
||||||
|
- cron
|
||||||
|
- custom
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: submodules
|
||||||
|
image: alpine/git
|
||||||
|
commands:
|
||||||
|
- git submodule update --init --recursive
|
||||||
|
|
||||||
|
- name: Compress Images
|
||||||
|
image: registry.tobiasmanske.de/docker-avif-webp:latest
|
||||||
|
secrets: [registry]
|
||||||
|
depends_on:
|
||||||
|
- submodules
|
||||||
|
|
||||||
|
- name: Build HTML
|
||||||
|
image: klakegg/hugo:alpine
|
||||||
|
commands:
|
||||||
|
- hugo --minify
|
||||||
|
depends_on:
|
||||||
|
- Compress Images
|
||||||
|
- submodules
|
||||||
|
|
||||||
|
- name: Build Image
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
repo: registry.tobiasmanske.de/tobiasmanske.de
|
||||||
|
force_tag: true
|
||||||
|
registry: registry.tobiasmanske.de
|
||||||
|
username:
|
||||||
|
from_secret: docker_username
|
||||||
|
password:
|
||||||
|
from_secret: docker_password
|
||||||
|
tags:
|
||||||
|
- latest
|
||||||
|
- ${DRONE_BRANCH}
|
||||||
|
cache_from:
|
||||||
|
- "registry.tobiasmanske.de/tobiasmanske.de:master"
|
||||||
|
- "registry.tobiasmanske.de/tobiasmanske.de:${DRONE_BRANCH}"
|
||||||
|
depends_on:
|
||||||
|
- Build HTML
|
||||||
|
|
||||||
|
image_pull_secrets:
|
||||||
|
- registry
|
4
Dockerfile
Normal file
4
Dockerfile
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
FROM httpd:alpine
|
||||||
|
EXPOSE 80
|
||||||
|
COPY ./docs /usr/local/apache2/htdocs
|
||||||
|
RUN chown -R 1000 /usr/local/apache2/htdocs
|
Loading…
x
Reference in New Issue
Block a user