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.
 
 
 

25 lines
520 B

  1. kind: pipeline
  2. name: hugo build
  3. steps:
  4. - name: build
  5. image: cibuilds/hugo:0.73
  6. volumes:
  7. - name: output
  8. path: /static
  9. commands:
  10. - mkdir /tmp/src
  11. - cp -r * /tmp/src
  12. - hugo -d /tmp/static -s /tmp/src
  13. - htmlproofer /tmp/static --allow-hash-href --check-html --empty-alt-ignore --disable-external
  14. - sudo rm -rf /static/*
  15. - sudo cp -r /tmp/static/* /static
  16. - sudo chown -R 1000:1000 /static
  17. environment:
  18. HUGO_ENV: production
  19. volumes:
  20. - name: output
  21. host:
  22. path: /srv/static/blog.tdem.in