Switch to kaniko for k8s-native image builds
This commit is contained in:
@@ -1,14 +1,8 @@
|
|||||||
pipeline:
|
steps:
|
||||||
build-and-push:
|
- name: build-and-push
|
||||||
image: woodpeckerci/plugin-docker
|
image: gcr.io/kaniko-project/executor:debug
|
||||||
settings:
|
commands:
|
||||||
# Куда пушить: ваш Gitea
|
- mkdir -p /kaniko/.docker
|
||||||
registry: git.mikhailkilin.ru
|
- echo '{"auths":{"git.mikhailkilin.ru":{"username":"'$DOCKER_USERNAME'","password":"'$DOCKER_PASSWORD'"}}}' > /kaniko/.docker/config.json
|
||||||
# Имя образа: группа/имя
|
- /kaniko/executor --context=. --destination=git.mikhailkilin.ru/killingdruid/bcard:latest --insecure --skip-tls-verify
|
||||||
repo: git.mikhailkilin.ru/killingdruid/bcard
|
secrets: [docker_username, docker_password]
|
||||||
tags: latest
|
|
||||||
# Секреты (нужно добавить в настройках репозитория в UI Woodpecker)
|
|
||||||
username:
|
|
||||||
from_secret: docker_username
|
|
||||||
password:
|
|
||||||
from_secret: docker_password
|
|
||||||
|
|||||||
Reference in New Issue
Block a user