mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-16 18:34:48 -04:00
Update Hugo container image
Update the Hugo container image used for GitLab deployments and provide a link to the container registry.
This commit is contained in:
parent
4f2e92f2aa
commit
f5b5c1d2c6
@ -38,7 +38,7 @@ cd your-hugo-site
|
||||
In the root directory of your Hugo site, create a `.gitlab-ci.yml` file. The `.gitlab-ci.yml` configures the GitLab CI on how to build your page. Simply add the content below.
|
||||
|
||||
{{< code file=".gitlab-ci.yml" >}}
|
||||
image: monachus/hugo
|
||||
image: registry.gitlab.com/pages/hugo:latest
|
||||
|
||||
variables:
|
||||
GIT_SUBMODULE_STRATEGY: recursive
|
||||
@ -53,6 +53,10 @@ pages:
|
||||
- master
|
||||
{{< /code >}}
|
||||
|
||||
{{% note %}}
|
||||
All available Hugo versions are listed [here](https://gitlab.com/pages/hugo/container_registry)
|
||||
{{% /note %}}
|
||||
|
||||
## Push Your Hugo Website to GitLab
|
||||
|
||||
Next, create a new repository on GitLab. It is *not* necessary to make the repository public. In addition, you might want to add `/public` to your .gitignore file, as there is no need to push compiled assets to GitLab or keep your output website in version control.
|
||||
|
Loading…
x
Reference in New Issue
Block a user