From 74e6cc20808eb904d7480f8a02a41d89f065df01 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 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..4650086 --- /dev/null +++ b/.drone.yml @@ -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