ci: change image build tags to branch
This commit is contained in:
parent
ee261142e8
commit
fbc93d87e0
@ -15,17 +15,6 @@ steps:
|
|||||||
from_secret: registry-username
|
from_secret: registry-username
|
||||||
PASSWORD:
|
PASSWORD:
|
||||||
from_secret: registry-password
|
from_secret: registry-password
|
||||||
# - name: build
|
|
||||||
# image: woodpeckerci/plugin-docker-buildx:5.2.2
|
|
||||||
# settings:
|
|
||||||
# registry: gitea.cazzzer.com
|
|
||||||
# repo: gitea.cazzzer.com/${CI_REPO}
|
|
||||||
# tags: ci
|
|
||||||
# username:
|
|
||||||
# from_secret: registry-username
|
|
||||||
# password:
|
|
||||||
# from_secret: registry-password
|
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: woodpeckerci/plugin-kaniko
|
image: woodpeckerci/plugin-kaniko
|
||||||
settings:
|
settings:
|
||||||
@ -38,8 +27,7 @@ steps:
|
|||||||
from_secret: registry-username
|
from_secret: registry-username
|
||||||
password:
|
password:
|
||||||
from_secret: registry-password
|
from_secret: registry-password
|
||||||
# replace '/' with '_' in branch name
|
# replace invalid characters in branch name
|
||||||
# remove 'feature/' prefix in branch name
|
tags: ${CI_COMMIT_BRANCH,,/[^a-z0-9._-]/-}
|
||||||
# tags: ${CI_COMMIT_BRANCH##feature/}
|
|
||||||
# auto_tag: true
|
# auto_tag: true
|
||||||
# cache: true
|
# cache: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user