docker-hugo/.woodpecker.yml

29 lines
747 B
YAML
Raw Normal View History

2023-08-03 13:22:24 +02:00
# Build and publish Docker images for multible architectures.
2023-08-03 14:50:28 +02:00
#
# Pushing an image to codeberg as container registry,
# package owner will be the repo owner.
#
# this config also shows usage of yaml aliases and
# was taken from https://codeberg.org/6543/docker-images/src/commit/37e29c227717c1c07d2776cddcf14725bf952875/.woodpecker/hello.yml
2023-08-03 13:22:24 +02:00
when:
branch: main
variables:
2023-08-03 14:54:50 +02:00
- &file Dockerfile
2023-08-03 14:50:28 +02:00
- &repo git.jmbit.de/${CI_REPO_OWNER}/docker-hugo
2023-08-03 13:22:24 +02:00
steps:
publish:
image: woodpeckerci/plugin-docker-buildx
settings:
dockerfile: *file
platforms: linux/arm64/v8,linux/amd64
2023-08-03 13:22:24 +02:00
repo: *repo
registry: git.jmbit.de
2023-08-03 14:50:28 +02:00
tags: latest
username: ${CI_REPO_OWNER}
2023-08-03 13:22:24 +02:00
password:
2023-08-03 14:50:28 +02:00
from_secret: forgejo_token
2023-08-03 13:22:24 +02:00