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