This commit is contained in:
parent
497244b7a2
commit
42edca576c
17
.drone.yml
17
.drone.yml
@ -15,13 +15,28 @@ steps:
|
|||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: docker:stable-dind
|
image: docker:stable-dind
|
||||||
|
volumes:
|
||||||
|
- name: dockersock
|
||||||
|
path: /var/run
|
||||||
environment:
|
environment:
|
||||||
DOCKER_USERNAME:
|
DOCKER_USERNAME:
|
||||||
from_secret: DOCKER_USERNAME
|
from_secret: DOCKER_USERNAME
|
||||||
DOCKER_PASSWORD:
|
DOCKER_PASSWORD:
|
||||||
from_secret: DOCKER_PASSWORD
|
from_secret: DOCKER_PASSWORD
|
||||||
commands:
|
commands:
|
||||||
- dockerd &
|
- sleep 5
|
||||||
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin registry.kmlabz.com
|
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin registry.kmlabz.com
|
||||||
- docker build -t="registry.kmlabz.com/$DRONE_REPO:$DRONE_BUILD_NUMBER" . && docker push "registry.kmlabz.com/$DRONE_REPO:$DRONE_BUILD_NUMBER"
|
- docker build -t="registry.kmlabz.com/$DRONE_REPO:$DRONE_BUILD_NUMBER" . && docker push "registry.kmlabz.com/$DRONE_REPO:$DRONE_BUILD_NUMBER"
|
||||||
- docker build -t="registry.kmlabz.com/$DRONE_REPO" . && docker push "registry.kmlabz.com/$DRONE_REPO"
|
- docker build -t="registry.kmlabz.com/$DRONE_REPO" . && docker push "registry.kmlabz.com/$DRONE_REPO"
|
||||||
|
|
||||||
|
services:
|
||||||
|
- name: docker
|
||||||
|
image: docker:stable-dind
|
||||||
|
privileged: true
|
||||||
|
volumes:
|
||||||
|
- name: dockersock
|
||||||
|
path: /var/run
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: dockersock
|
||||||
|
temp: {}
|
||||||
|
Loading…
Reference in New Issue
Block a user