From 0aa506a5111e573859ff154e57bd45c7b46e9162 Mon Sep 17 00:00:00 2001 From: Emre KARTAL Date: Mon, 27 Feb 2023 11:45:07 +0100 Subject: [PATCH] Add build Api --- .drone.yml | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 01bea70..b134747 100644 --- a/.drone.yml +++ b/.drone.yml @@ -12,10 +12,35 @@ steps: image: node:latest commands: - cd ./src/FLAD/ - - npm install expo-cli - npm install - npm run + - name: docker-build-and-push + image: node:latest + settings: + context: src/Api + registry: hub.codefirst.iut.uca.fr + repo: hub.codefirst.iut.uca.fr/emre.kartal/FLAD + username: + from_secret: SECRET_REGISTRY_USERNAME + password: + from_secret: SECRET_REGISTRY_PASSWORD + commands: + - cd ./src/Api + - npm install + - npm run build + + #container deployment + - name: deploy-container + image: node:latest + environment: + IMAGENAME: hub.codefirst.iut.uca.fr/emre.kartal/FLAD:latest + CONTAINERNAME: FladApi + COMMAND: create + OVERWRITE: true + depends_on: [ docker-build-and-push ] + + - name: code-analysis image: node:latest environment: