use docker to build image
This commit is contained in:
parent
f1d9789e43
commit
84ff3b4c05
23
.drone.yml
23
.drone.yml
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user