This commit is contained in:
parent
1d357a43f4
commit
cc11c392ae
34
.drone.yml
34
.drone.yml
@ -2,15 +2,29 @@ kind: pipeline
|
|||||||
type: docker
|
type: docker
|
||||||
name: default
|
name: default
|
||||||
steps:
|
steps:
|
||||||
- name: kaniko
|
- name: build-image
|
||||||
image: banzaicloud/drone-kaniko
|
image: docker:dind
|
||||||
settings:
|
volumes:
|
||||||
registry: registry.kmlabz.com
|
- name: dockersock
|
||||||
repo: tormakris/${DRONE_REPO_NAME}
|
path: /var/run
|
||||||
username:
|
environment:
|
||||||
|
DOCKER_USERNAME:
|
||||||
from_secret: DOCKER_USERNAME
|
from_secret: DOCKER_USERNAME
|
||||||
password:
|
DOCKER_PASSWORD:
|
||||||
from_secret: DOCKER_PASSWORD
|
from_secret: DOCKER_PASSWORD
|
||||||
tags:
|
commands:
|
||||||
- latest
|
- sleep 10
|
||||||
- ${DRONE_BUILD_NUMBER}
|
- 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: {}
|
Loading…
Reference in New Issue
Block a user