update drone for staging and prod
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Mathieu Broillet 2023-06-11 13:27:06 +02:00
parent d9c7c7509b
commit dfca58b094
Signed by: mathieu
GPG Key ID: A08E484FE95074C1

View File

@ -20,11 +20,18 @@ steps:
- hugo version - hugo version
# - ln -s /home/hebron/hugo_resources/production resources # - ln -s /home/hebron/hugo_resources/production resources
- name: build - name: build staging
commands:
- hugo --gc --minify --buildDrafts -b https://blog.broillet.ch/
- name: copy staging build
commands:
- mkdir -p /var/www/html/staging/
- cp -R public/* /var/www/html/staging/
- name: build production
commands: commands:
- hugo --gc --minify -b https://blog.broillet.ch/ - hugo --gc --minify -b https://blog.broillet.ch/
- name: copy production build
- name: copy built website
commands: commands:
- mkdir -p /var/www/html/ - mkdir -p /var/www/html/prod/
- cp -R public/* /var/www/html/ - cp -R public/* /var/www/html/prod/