| `image` / `ZOLA_IMAGE` | The Docker image used to run `zola` | `docker.io/zola:latest`<br/>[](https://to-be-continuous.gitlab.io/doc/secu/trivy-ZOLA_IMAGE) |
| `image` / `ZOLA_IMAGE` | The Docker image used to run `zola` | `docker.io/jauderho/zola:latest`<br/>[](https://to-be-continuous.gitlab.io/doc/secu/trivy-ZOLA_IMAGE) |
| `site-dir` / `ZOLA_SITE_DIR` | The directory the rendered content will be placed | `public` |
| `workspace-dir` / `ZOLA_WORKSPACE_DIR` | The directory containing the zola site in the repository | `.` |
## Jobs
@@ -56,70 +58,28 @@ It uses the following variable:
| Input / Variable | Description | Default value |
| `build-args` / `ZOLA_BUILD_ARGS` | Arguments used by the [build job](https://www.getzola.org/documentation/getting-started/cli-usage/#build) | `--minify` |
### `zola-lint` job
This job performs a [lint](link-to-the-tool) analysis of your code, mapped to the `build` stage.
This job performs a [zola check](https://www.getzola.org/documentation/getting-started/cli-usage/#check) analysis of your code, mapped to the `build` stage.
It uses the following variables:
| Input / Variable | Description | Default value |
| `lint-image` / `ZOLA_LINT_IMAGE` | The Docker image used to run the lint tool | `zola-lint:latest`<br/>[](https://to-be-continuous.gitlab.io/doc/secu/trivy-ZOLA_LINT_IMAGE) |
| `lint-disabled` / `ZOLA_LINT_DISABLED` | Set to `true` to disable the `lint` analysis| _none_ (enabled) |
| `depcheck-image` / `ZOLA_DEPCHECK_IMAGE` | The Docker image used to run the dependency check tool | `zola-depcheck:latest`<br/>[](https://to-be-continuous.gitlab.io/doc/secu/trivy-ZOLA_DEPCHECK_IMAGE) |
| `lychee-enabled` / `ZOLA_LYCHEE_ENABLED` | Set to `true` to enable this job | _none_ (disabled) |
| `lychee-image` / `ZOLA_LYCHEE_IMAGE` | The Docker image used to run [lychee](https://github.com/lycheeverse/lychee) | `docker.io/lycheeverse/lychee:latest`<br/>[](https://to-be-continuous.gitlab.io/doc/secu/trivy-MKD_LYCHEE_IMAGE) |
@@ -134,3 +94,25 @@ Here are some advices about your **secrets** (variables marked with a :lock:):
simply define its value as the [Base64](https://en.wikipedia.org/wiki/Base64) encoded value prefixed with `@b64@`:
it will then be possible to mask it and the template will automatically decode it prior to using it.
3. Don't forget to escape special characters (e.g.: `$` -> `$$`).
## Publishing
:warning: this template is not a deployment template and it only builds a MkDocs project.
You might deploy the generated site using a [GitLab pages](https://docs.gitlab.com/user/project/pages/) job (there is [a variant for that](#gitlab-pages-variant)) or any other method you see fit.
## Variants
### GitLab Pages variant
Basically it copies the content of the zola generated site folder (`public` by default) to the `public` folder which is published by [GitLab pages](https://docs.gitlab.com/user/project/pages/#how-it-works).
If you wish to use it, Add the following to your `.gitlab-ci.yml`: