Source code for tdem.in (formerly blog.tdem.in) https://tdem.in
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

37 lines
822 B

kind: pipeline
name: hugo build
steps:
- name: hugo build
image: cibuilds/hugo:0.73
volumes:
- name: hugo
path: /static
commands:
- mkdir /tmp/src
- cp -r * /tmp/src
- hugo -d /tmp/static -s /tmp/src
- htmlproofer /tmp/static --allow-hash-href --check-html --empty-alt-ignore --disable-external
- sudo find /static -mindepth 1 -delete
- sudo cp -r /tmp/static /
- sudo chown -R 1000:1000 /static
environment:
HUGO_ENV: production
- name: gmnhg build
image: registry.git.tdem.in/gmnhg:v0.1.0
volumes:
- name: gmnhg
path: /static
commands:
- gmnhg -output /tmp/static
- find /static -mindepth 1 -delete
- cp -r /tmp/static /
- chown -R 1000:1000 /static
volumes:
- name: hugo
host:
path: /srv/static/blog.tdem.in
- name: gmnhg
host:
path: /srv/static/gemini