From 19d8787a5e466054db057a08040638ef56227581 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20MIELCAREK?= <94568134+felixmielcarek@users.noreply.github.com> Date: Tue, 14 May 2024 16:34:31 +0200 Subject: [PATCH] Create .drone.yaml --- .drone.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .drone.yaml diff --git a/.drone.yaml b/.drone.yaml new file mode 100644 index 0000000..ca326f4 --- /dev/null +++ b/.drone.yaml @@ -0,0 +1,33 @@ +kind: pipeline +type: docker +name: DB_PIPELINE + +trigger: + branch: + - main + event: + - push + +- name: deploy-container-pgsql + image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest + environment: + IMAGENAME: postgres:latest + CONTAINERNAME: pgsql + COMMAND: create + OVERWRITE: false + PRIVATE: true + CODEFIRST_CLIENTDRONE_ENV_PG_ROOT_PASSWORD: + from_secret: db_root_password + CODEFIRST_CLIENTDRONE_ENV_PG_DATABASE: + from_secret: db_database + CODEFIRST_CLIENTDRONE_ENV_PG_USER: + from_secret: db_user + CODEFIRST_CLIENTDRONE_ENV_PG_PASSWORD: + from_secret: db_password + +#- name: create-bigbrother-database +# image: node:latest +# commands: +# - node database/db-creation.js + +