npm
as package managertaskfile
as task runnerhugo
as static page generatorB2
as source for the full resource imagesGitHub actions
as CI/CD SystemIt exist two build goals build
and ci
, the ci
goal is obviously executed in the Github actions workflow (ci.yml
).
The ci
goal calls the script get_gallery_images.sh this script will download the images for
the gallery's from the B2 Bucket (source_bucket
) specific in the gallery index.md.
The script needs some environment variables to be set B2_APPLICATION_KEY_ID
and B2_APPLICATION_KEY
.
Example:
---
title: "Street-01-2020"
date: "2020-01-03"
summary: ""
draft: false
source_bucket: "b2://steinbrueck-io-gallery/Street-01-2020"
tags: ["Street", "BW", "Erfurt", "Ingolstadt", "Nuernberg"]
---
hugo new --kind blog blog/Foobar-$(date +%Y-%m-%d)
# you can also use a gulp task but in this case the name will be only the date
task new-blog
hugo new --kind gallery gallery/Street-$(date +%m-%Y)
# or if you want to set a name by our own ...
hugo new --kind gallery gallery/<NAME>
# you can also use a gulp task
task new-gallery