Dagger
Search

hugo

Get Hugo static site generator.

Installation

dagger install github.com/camptocamp/daggerverse/hugo@81c7c3012b2ef703465237470376a367eb20e1d9

Entrypoint

Return Type
Hugo !
Arguments
NameTypeDefault ValueDescription
versionString !-Hugo version to get
extendedBoolean -Hugo edition to get
Example
dagger -m github.com/camptocamp/daggerverse/hugo@81c7c3012b2ef703465237470376a367eb20e1d9 call \
 --version string
func (m *myModule) example(version string) *Hugo  {
	return dag.
			Hugo(version)
}
@function
def example(version: str, ) -> dag.Hugo:
	return (
		dag.hugo(version)
	)
@func()
example(version: string, ): Hugo {
	return dag
		.hugo(version)
}

Types

Hugo 🔗

Hugo

binary() 🔗

Get Hugo executable binary

Return Type
File !
Arguments
NameTypeDefault ValueDescription
platformScalar -Platform to get Hugo for
Example
dagger -m github.com/camptocamp/daggerverse/hugo@81c7c3012b2ef703465237470376a367eb20e1d9 call \
 --version string binary
func (m *myModule) example(version string) *File  {
	return dag.
			Hugo(version).
			Binary()
}
@function
def example(version: str, ) -> dagger.File:
	return (
		dag.hugo(version)
		.binary()
	)
@func()
example(version: string, ): File {
	return dag
		.hugo(version)
		.binary()
}

overlay() 🔗

Get a root filesystem overlay with Hugo

Return Type
Directory !
Arguments
NameTypeDefault ValueDescription
platformScalar -Platform to get Hugo for
prefixString -Filesystem prefix under which to install Hugo
Example
dagger -m github.com/camptocamp/daggerverse/hugo@81c7c3012b2ef703465237470376a367eb20e1d9 call \
 --version string overlay
func (m *myModule) example(version string) *Directory  {
	return dag.
			Hugo(version).
			Overlay()
}
@function
def example(version: str, ) -> dagger.Directory:
	return (
		dag.hugo(version)
		.overlay()
	)
@func()
example(version: string, ): Directory {
	return dag
		.hugo(version)
		.overlay()
}

installation() 🔗

Install Hugo in a container

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
containerContainer !-Container in which to install Hugo
Example
dagger -m github.com/camptocamp/daggerverse/hugo@81c7c3012b2ef703465237470376a367eb20e1d9 call \
 --version string installation --container IMAGE:TAG
func (m *myModule) example(version string, container *Container) *Container  {
	return dag.
			Hugo(version).
			Installation(container)
}
@function
def example(version: str, container: dagger.Container) -> dagger.Container:
	return (
		dag.hugo(version)
		.installation(container)
	)
@func()
example(version: string, container: Container): Container {
	return dag
		.hugo(version)
		.installation(container)
}

container() 🔗

Get a Hugo container from a base container

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
containerContainer !-Base container
Example
dagger -m github.com/camptocamp/daggerverse/hugo@81c7c3012b2ef703465237470376a367eb20e1d9 call \
 --version string container --container IMAGE:TAG
func (m *myModule) example(version string, container *Container) *Container  {
	return dag.
			Hugo(version).
			Container(container)
}
@function
def example(version: str, container: dagger.Container) -> dagger.Container:
	return (
		dag.hugo(version)
		.container(container)
	)
@func()
example(version: string, container: Container): Container {
	return dag
		.hugo(version)
		.container(container)
}

redhatContainer() 🔗

Get a Red Hat Universal Base Image container with Hugo

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
platformScalar -Platform to get container for
Example
dagger -m github.com/camptocamp/daggerverse/hugo@81c7c3012b2ef703465237470376a367eb20e1d9 call \
 --version string redhat-container
func (m *myModule) example(version string) *Container  {
	return dag.
			Hugo(version).
			RedhatContainer()
}
@function
def example(version: str, ) -> dagger.Container:
	return (
		dag.hugo(version)
		.redhat_container()
	)
@func()
example(version: string, ): Container {
	return dag
		.hugo(version)
		.redhatContainer()
}

redhatMinimalContainer() 🔗

Get a Red Hat Minimal Universal Base Image container with Hugo

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
platformScalar -Platform to get container for
Example
dagger -m github.com/camptocamp/daggerverse/hugo@81c7c3012b2ef703465237470376a367eb20e1d9 call \
 --version string redhat-minimal-container
func (m *myModule) example(version string) *Container  {
	return dag.
			Hugo(version).
			RedhatMinimalContainer()
}
@function
def example(version: str, ) -> dagger.Container:
	return (
		dag.hugo(version)
		.redhat_minimal_container()
	)
@func()
example(version: string, ): Container {
	return dag
		.hugo(version)
		.redhatMinimalContainer()
}

redhatMicroContainer() 🔗

Get a Red Hat Micro Universal Base Image container with Hugo

Hugo extended edition and Hugo modules cannot be used.

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
platformScalar -Platform to get container for
Example
dagger -m github.com/camptocamp/daggerverse/hugo@81c7c3012b2ef703465237470376a367eb20e1d9 call \
 --version string redhat-micro-container
func (m *myModule) example(version string) *Container  {
	return dag.
			Hugo(version).
			RedhatMicroContainer()
}
@function
def example(version: str, ) -> dagger.Container:
	return (
		dag.hugo(version)
		.redhat_micro_container()
	)
@func()
example(version: string, ): Container {
	return dag
		.hugo(version)
		.redhatMicroContainer()
}