This commit is contained in:
parent
32f1569969
commit
3ed0cd8939
1 changed files with 9 additions and 17 deletions
26
.drone.yml
26
.drone.yml
|
@ -6,11 +6,6 @@ trigger:
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
|
|
||||||
volumes:
|
|
||||||
- name: dockersock
|
|
||||||
host:
|
|
||||||
path: /var/run/docker.sock
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: rust:slim
|
image: rust:slim
|
||||||
|
@ -21,16 +16,13 @@ steps:
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
image: docker:latest
|
image: plugins/docker
|
||||||
volumes:
|
settings:
|
||||||
- name: dockersock
|
repo: git2.zettoit.eu/zettoit/bin
|
||||||
path: "/var/run/docker.sock"
|
username: droneci
|
||||||
environment:
|
password:
|
||||||
REGISTRY: git2.zettoit.eu/zettoit/bin
|
|
||||||
REGISTRY_USER: droneci
|
|
||||||
REGISTRY_PASSWD:
|
|
||||||
from_secret: REGISTRY_PASSWD
|
from_secret: REGISTRY_PASSWD
|
||||||
commands:
|
registry: git2.zettoit.eu
|
||||||
- docker login -u $REGISTRY_USER -p $REGISTRY_PASSWD $REGISTRY
|
tags:
|
||||||
- docker build -t $REGISTRY:latest . -f Dockerfile
|
- latest
|
||||||
- docker push $REGISTRY:latest
|
- master
|
||||||
|
|
Loading…
Reference in a new issue