From 70b1d2cc2bcb445dd7b659aae0d5f822074ef182 Mon Sep 17 00:00:00 2001 From: RemRem Date: Sun, 27 Nov 2022 12:53:35 +0100 Subject: [PATCH] add .drone.yml --- .drone.yml | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..f59a0c7 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,50 @@ +kind: pipeline +type: docker +name: CI + +trigger: + event: + - push + branch: + - master + +steps: + - name: build-server + image: dart:stable + commands: + - dart compile exe bin/server.dart -o bin/server + + +kind: pipeline +type: docker +name: CD + +trigger: + event: + - push + branch: + - master + +steps: + - name: docker-build + image: dart:stable + settings: + dockerfile: Dockerfile + context: . + registry: hub.codefirst.iut.uca.fr + repo: hub.codefirst.iut.uca.fr/remi.arnal/passworld-api + username: + from_secret: SECRET_REGISTRY_USERNAME + password: + from_secret: SECRET_REGISTRY_PASSWORD + depends_on: [build-server] + + + - name: docker-deployment + image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest + environment: + IMAGENAME: hub.codefirst.iut.uca.fr/remi.arnal/passworld-api:latest + CONTAINERNAME: passworld-api + COMMAND: create + OVERWRITE: true + depends_on: [docker-build] \ No newline at end of file