2023-06-10 16:29:48 +02:00
|
|
|
kind: pipeline
|
2023-06-10 16:39:30 +02:00
|
|
|
type: docker
|
2023-06-10 16:29:48 +02:00
|
|
|
name: bin
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
image: rust:slim
|
|
|
|
commands:
|
|
|
|
- cargo build --release
|
|
|
|
- name: pack
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
image: docker:latest
|
|
|
|
commands:
|
2023-06-10 17:03:52 +02:00
|
|
|
- docker login -u $REGISTRY_USER -p $REGISTRY_PASSWD $REGISTRY
|
|
|
|
- docker build -t $REGISTRY/bin:latest . -f Dockerfile
|
|
|
|
- docker push $REGISTRY/bin:latest
|