Skip to content
/ victor Public

Docker image to generate and host a static Hugo-backed website

License

Notifications You must be signed in to change notification settings

thoom/victor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Victor

Introduction

Victor is a Docker image provides a way to build a static website from a Hugo-based Git repository. The static website is then served by Nginx.

Usage

Themes

You can manage themes 2 ways:

  1. Copy the theme into the themes folder.
  2. Create a git submodule for the theme.

Environment variables

Pass the following environment variables when instantiating the docker container:

SSH_KEY

Base64 encoded SSH private key used to connect to your Git repository.

GIT_REPO

The URL of the git repository.

GIT_BRANCH

The branch to use (defaults to master if not passed).

BASE_URL

If set, hugo will build canonified URLS using the base url. Useful if you want the site to build to a different URL than defined in the configuation file.

BUILD_ON_START

If set, hugo will be rebuild on container restart. Useful if you also want to use this image in development.

CLI_ARGS

Add additional hugo command line arguments when a project is built.

About

Docker image to generate and host a static Hugo-backed website

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published