hugoci/.woodpecker/.build-image.yaml

33 lines
765 B
YAML
Raw Normal View History

2023-07-26 15:35:54 +02:00
variables:
2023-07-26 15:42:26 +02:00
- global_env: &global_env
2023-07-26 15:57:51 +02:00
- HUGO_VERSION=0.115.3
2023-07-26 15:35:54 +02:00
steps:
build-and-push:
image: woodpeckerci/plugin-docker-buildx
settings:
registry: code.cozy.town
username:
from_secret: registry_username
password:
from_secret: registry_token
repo: code.cozy.town/vrifox/hugoci
tags:
- latest
- ${HUGO_VERSION}
cache_from: code.cozy.town/vrifox/hugoci:latest
build_args:
- HUGO_VERSION: ${HUGO_VERSION}
when:
2023-07-26 16:02:16 +02:00
branch: main
2023-07-26 15:35:54 +02:00
2023-07-26 15:57:51 +02:00
test:
2023-07-26 15:35:54 +02:00
image: woodpeckerci/plugin-docker-buildx
settings:
dry-run: true
build_args:
- HUGO_VERSION: ${HUGO_VERSION}
2023-07-26 16:12:37 +02:00
when:
branch:
exclude: main
event: [ push, pull_request, manual ]