vpgen/.woodpecker/build-image.yml
Yuri Tatishchev 0cd67da306
All checks were successful
ci/woodpecker/push/build-image Pipeline was successful
ci: change image build tags to branch
2025-04-23 16:58:15 -07:00

34 lines
828 B
YAML

when:
- event: [push]
steps:
- name: echos
image: alpine
commands:
- echo $CI_REPO
- echo $CI_REPO_REMOTE_ID
- echo $CI_REPO_URL
- echo $CI_REPO_CLONE_URL
- echo $${CI_COMMIT_BRANCH/\\//-}
- echo $USERNAME:$PASSWORD
environment:
USERNAME:
from_secret: registry-username
PASSWORD:
from_secret: registry-password
- name: build
image: woodpeckerci/plugin-kaniko
settings:
registry: gitea.cazzzer.com
repo: ${CI_REPO,,}
# tags: ci
# tags: ${CI_COMMIT_BRANCH//[^a-zA-Z0-9._-]/-}
username:
from_secret: registry-username
password:
from_secret: registry-password
# replace invalid characters in branch name
tags: ${CI_COMMIT_BRANCH/\//-}
# auto_tag: true
# cache: true