2023-08-03 11:13:56 +02:00
|
|
|
when:
|
2024-11-27 10:27:26 +01:00
|
|
|
- branch: main
|
|
|
|
event: push
|
|
|
|
|
2023-08-03 11:13:56 +02:00
|
|
|
|
|
|
|
variables:
|
|
|
|
- &file Dockerfile
|
2023-08-03 15:22:35 +02:00
|
|
|
- &repo git.jmbit.de/${CI_REPO_OWNER}/${CI_REPO_NAME}
|
2023-08-03 11:13:56 +02:00
|
|
|
|
|
|
|
steps:
|
2024-01-11 14:42:33 +01:00
|
|
|
hugo:
|
2023-08-03 15:08:10 +02:00
|
|
|
image: git.jmbit.de/jmb/docker-hugo
|
2023-08-03 11:13:56 +02:00
|
|
|
commands:
|
|
|
|
- hugo --minify
|
|
|
|
|
|
|
|
publish:
|
|
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
|
|
settings:
|
|
|
|
dockerfile: *file
|
2024-03-16 19:06:23 +01:00
|
|
|
platforms: linux/arm64/v8,linux/amd64
|
2023-08-03 11:13:56 +02:00
|
|
|
repo: *repo
|
2023-08-03 15:08:10 +02:00
|
|
|
registry: git.jmbit.de
|
|
|
|
tags: latest
|
|
|
|
username: ${CI_REPO_OWNER}
|
2023-08-03 11:13:56 +02:00
|
|
|
password:
|
2023-08-03 15:08:10 +02:00
|
|
|
from_secret: forgejo_token
|
2023-08-03 11:13:56 +02:00
|
|
|
when:
|
|
|
|
event: push
|
|
|
|
|