Files
static-web/.woodpecker.yaml
Ask Bjørn Hansen 7789e0054a Use docker-tags plugin for flexible image tagging
Add generate-tags step with branch, sha, edge, build number, and
semver tag formats. Enable tag events for release workflows.
2026-01-29 23:27:28 -08:00

28 lines
696 B
YAML

when:
- event: [push, pull_request, manual, tag]
steps:
- name: generate-tags
image: ghcr.io/abh/woodpecker-docker-tags-plugin:sha-86e52ce
settings:
tags: |
branch
sha
edge
raw -v build-${CI_PIPELINE_NUMBER}
semver --format {{major}}
semver --format {{major}}.{{minor}}
semver --format {{major}}.{{minor}}.{{patch}}
- name: docker
image: woodpeckerci/plugin-kaniko
settings:
dockerfile: Dockerfile
registry: harbor.ntppool.org
repo: library/static-web
cache: true
username:
from_secret: harbor_library_username
password:
from_secret: harbor_library_password