This commit is contained in:
parent
578db8daa5
commit
e103510245
1 changed files with 10 additions and 7 deletions
17
.drone.yml
17
.drone.yml
|
@ -11,15 +11,18 @@ steps:
|
||||||
image: rust:slim
|
image: rust:slim
|
||||||
commands:
|
commands:
|
||||||
- cargo build --release
|
- cargo build --release
|
||||||
|
|
||||||
- name: pack
|
- name: pack
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
image: plugins/docker
|
image: docker:latest
|
||||||
settings:
|
environment:
|
||||||
username: droneci
|
REGISTRY: git2.zettoit.eu/zettoit/bin
|
||||||
password:
|
REGISTRY_USER: droneci
|
||||||
|
REGISTRY_PASSWD:
|
||||||
from_secret: REGISTRY_PASSWD
|
from_secret: REGISTRY_PASSWD
|
||||||
repo: git2.zettoit.eu/zettoit/bin
|
commands:
|
||||||
tags: latest
|
- docker login -u $REGISTRY_USER -p $REGISTRY_PASSWD $REGISTRY
|
||||||
dockerfile: ./Dockerfile
|
- docker build -t $REGISTRY:latest . -f Dockerfile
|
||||||
|
- docker push $REGISTRY:latest
|
||||||
|
|
Loading…
Reference in a new issue