Paul Z
32f1569969
Some checks reported errors
continuous-integration/drone/push Build encountered an error
36 lines
651 B
YAML
36 lines
651 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: bin
|
|
|
|
trigger:
|
|
event:
|
|
- push
|
|
|
|
volumes:
|
|
- name: dockersock
|
|
host:
|
|
path: /var/run/docker.sock
|
|
|
|
steps:
|
|
- name: build
|
|
image: rust:slim
|
|
commands:
|
|
- cargo build --release
|
|
|
|
- name: pack
|
|
when:
|
|
branch:
|
|
- master
|
|
image: docker:latest
|
|
volumes:
|
|
- name: dockersock
|
|
path: "/var/run/docker.sock"
|
|
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
|