www-jmbit-de/.woodpecker.yml

30 lines
539 B
YAML
Raw Normal View History

2023-08-03 11:13:56 +02:00
when:
- 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:
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