23 lines
400 B
YAML
23 lines
400 B
YAML
|
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
|