From e1035102454d921e2a3219353511a0ffd6122cca Mon Sep 17 00:00:00 2001 From: Paul Z Date: Sat, 10 Jun 2023 17:34:17 +0200 Subject: [PATCH] drone ci --- .drone.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.drone.yml b/.drone.yml index b742149..b2d388c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,15 +11,18 @@ steps: image: rust:slim commands: - cargo build --release + - name: pack when: branch: - master - image: plugins/docker - settings: - username: droneci - password: + image: docker:latest + environment: + REGISTRY: git2.zettoit.eu/zettoit/bin + REGISTRY_USER: droneci + REGISTRY_PASSWD: from_secret: REGISTRY_PASSWD - repo: git2.zettoit.eu/zettoit/bin - tags: latest - dockerfile: ./Dockerfile + commands: + - docker login -u $REGISTRY_USER -p $REGISTRY_PASSWD $REGISTRY + - docker build -t $REGISTRY:latest . -f Dockerfile + - docker push $REGISTRY:latest