use dind
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Torma Kristóf 2021-07-09 16:00:30 +02:00
parent 1d357a43f4
commit cc11c392ae

View File

@ -2,15 +2,29 @@ kind: pipeline
type: docker
name: default
steps:
- name: kaniko
image: banzaicloud/drone-kaniko
settings:
registry: registry.kmlabz.com
repo: tormakris/${DRONE_REPO_NAME}
username:
- name: build-image
image: docker:dind
volumes:
- name: dockersock
path: /var/run
environment:
DOCKER_USERNAME:
from_secret: DOCKER_USERNAME
password:
DOCKER_PASSWORD:
from_secret: DOCKER_PASSWORD
tags:
- latest
- ${DRONE_BUILD_NUMBER}
commands:
- sleep 10
- echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USERNAME" --password-stdin registry.kmlabz.com
- docker build -t registry.kmlabz.com/tormakris/drone-kaniko
- docker push registry.kmlabz.com/tormakris/drone-kaniko
services:
- name: docker
image: docker:dind
privileged: true
volumes:
- name: dockersock
path: /var/run
volumes:
- name: dockersock
temp: {}