Help us shape the future of Go! Take the 2026 Go Developer Survey

ci-docker-hugo-mirror

command module
v0.0.0-...-eb7ccaf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2019 License: AGPL-3.0 Imports: 3 Imported by: 0

README

Script to create CI - continuous integration images for hugo deployment

Readme

The script takes in 1 argument, a directory containing already checked out repository of malvahq/ci-docker-hugo code.

It then downloads the latest releases of hugo through Github API v3.

For every release of hugo , it creates a local branch of ci-docker-hugo off master with the name of the branch being that of a hugo release, eg: 0.58.3, say.

In the second stage, it replaces the Dockerfile created off master branch with the specific version of the branch under discussion. After the changes, the new branch is pushed to the remote.

In the final stage, it merges the contents of origin/master to this branch to pick up any optimizations to the Dockerfile in master branch.

Warning: As can be seen above, the script is extremely dangerous and is considered a hack to keep up to the latest releases of hugo.

Do not bother using this script unless you know what you are doing as it can wreak havoc on your git repository, both local and remote.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL