2 Commits

Author SHA1 Message Date
80f0298ac1 Use docker-tags plugin for flexible image tagging
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Add generate-tags step with branch, sha, edge, build number, and
semver tag formats. Enable tag events for release workflows.
2026-01-28 23:44:52 -08:00
a3076687c0 Update to Alpine 3.23.3 base image (Apache 2.4.66) 2026-01-28 23:01:02 -08:00
2 changed files with 14 additions and 5 deletions

View File

@@ -1,16 +1,25 @@
when:
- event: [push, pull_request, manual]
- event: [push, pull_request, manual, tag]
steps:
- name: generate-tags
image: ghcr.io/dvjn/woodpecker-docker-tags-plugin
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
tags:
- ${CI_COMMIT_SHA:0:7}
- ${CI_COMMIT_BRANCH}
cache: true
username:
from_secret: harbor_library_username

View File

@@ -1,4 +1,4 @@
FROM harbor.ntppool.org/perlorg/base-os:3.22.2
FROM harbor.ntppool.org/perlorg/base-os:3.23.3
ENV BUILD_VERSION 1
USER root
WORKDIR /web