update drone for staging and prod
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d9c7c7509b
commit
dfca58b094
17
.drone.yml
17
.drone.yml
@ -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/
|
Loading…
Reference in New Issue
Block a user