22 lines
385 B
YAML
22 lines
385 B
YAML
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
|
|
commands:
|
|
- docker login -u $REGISTRY_USER -p $REGISTRY_PASSWD $REGISTRY
|
|
- docker build -t $REGISTRY/bin:latest . -f Dockerfile
|
|
- docker push $REGISTRY/bin:latest
|