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