This commit is contained in:
parent
0f5f4e7f8c
commit
74e6cc2080
1 changed files with 22 additions and 0 deletions
22
.drone.yml
Normal file
22
.drone.yml
Normal file
|
@ -0,0 +1,22 @@
|
|||
kind: pipeline
|
||||
type: kubernetes
|
||||
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 gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
|
||||
- docker build -t $CI_REGISTRY_IMAGE/master . -f Dockerfile
|
||||
- docker push $CI_REGISTRY_IMAGE/master
|
Loading…
Reference in a new issue