hugoci/.woodpecker/.build-image.yaml
2023-07-26 16:15:12 +02:00

41 lines
No EOL
1,019 B
YAML

variables:
- global_env: &global_env
- HUGO_VERSION=0.115.3
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:
branch: main
test:
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}
dry-run: true
when:
event: [ push, pull_request, manual ]