From 5e777f75334d44d01073d4c85bd9e0ca933f24d5 Mon Sep 17 00:00:00 2001 From: Paul Z Date: Sat, 10 Jun 2023 16:29:48 +0200 Subject: [PATCH] drone ci --- .drone.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..b2d388c --- /dev/null +++ b/.drone.yml @@ -0,0 +1,28 @@ +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 + environment: + REGISTRY: git2.zettoit.eu/zettoit/bin + REGISTRY_USER: droneci + REGISTRY_PASSWD: + from_secret: REGISTRY_PASSWD + commands: + - docker login -u $REGISTRY_USER -p $REGISTRY_PASSWD $REGISTRY + - docker build -t $REGISTRY:latest . -f Dockerfile + - docker push $REGISTRY:latest