drone ci
This commit is contained in:
parent
0f5f4e7f8c
commit
5e777f7533
1 changed files with 28 additions and 0 deletions
28
.drone.yml
Normal file
28
.drone.yml
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: bin
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build
|
||||||
|
image: rust:slim
|
||||||
|
commands:
|
||||||
|
- cargo build --release
|
||||||
|
|
||||||
|
- name: pack
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
image: docker:latest
|
||||||
|
environment:
|
||||||
|
REGISTRY: git2.zettoit.eu/zettoit/bin
|
||||||
|
REGISTRY_USER: droneci
|
||||||
|
REGISTRY_PASSWD:
|
||||||
|
from_secret: REGISTRY_PASSWD
|
||||||
|
commands:
|
||||||
|
- docker login -u $REGISTRY_USER -p $REGISTRY_PASSWD $REGISTRY
|
||||||
|
- docker build -t $REGISTRY:latest . -f Dockerfile
|
||||||
|
- docker push $REGISTRY:latest
|
Loading…
Reference in a new issue