use docker to build image

This commit is contained in:
Torma Kristóf 2020-08-06 22:56:23 +02:00
parent f1d9789e43
commit 84ff3b4c05
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047

View File

@ -3,19 +3,16 @@ type: docker
name: default name: default
steps: steps:
- name: kaniko - name: docker
image: banzaicloud/drone-kaniko image: docker
settings: volumes:
registry: registry.kmlabz.com - /var/run/docker.sock:/var/run/docker.sock
repo: birbnetes/${DRONE_REPO_NAME} commands:
username: - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin registry.kmlabz.com
from_secret: DOCKER_USERNAME - docker build -t registry.kmlabz.com/$DRONE_REPO .
password: - docker build -t registry.kmlabz.com/$DRONE_REPO:$DRONE_BUILD_NUMBER .
from_secret: DOCKER_PASSWORD - docker push registry.kmlabz.com/$DRONE_REPO
tags: - docker push registry.kmlabz.com/$DRONE_REPO:$DRONE_BUILD_NUMBER
- latest
- ${DRONE_BUILD_NUMBER}
- name: ms-teams - name: ms-teams
image: kuperiu/drone-teams image: kuperiu/drone-teams