drone-kaniko/.drone.yml

30 lines
722 B
YAML
Raw Normal View History

2021-07-09 15:41:07 +02:00
kind: pipeline
type: docker
name: default
steps:
2021-07-09 16:00:30 +02:00
- name: build-image
image: docker:dind
volumes:
- name: dockersock
path: /var/run
environment:
DOCKER_USERNAME:
2021-07-09 15:41:07 +02:00
from_secret: DOCKER_USERNAME
2021-07-09 16:00:30 +02:00
DOCKER_PASSWORD:
2021-07-09 15:41:07 +02:00
from_secret: DOCKER_PASSWORD
2021-07-09 16:00:30 +02:00
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: {}