From 75599c125b1e53b25a3ae07cd13a41d1867377cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20MIELCAREK?= <94568134+felixmielcarek@users.noreply.github.com> Date: Tue, 21 May 2024 13:17:21 +0200 Subject: [PATCH] Commenting CD steps (test purpose) --- .drone.yml | 153 +++++++++++++++++++++++++++-------------------------- 1 file changed, 77 insertions(+), 76 deletions(-) diff --git a/.drone.yml b/.drone.yml index 55314d8..14b00fa 100644 --- a/.drone.yml +++ b/.drone.yml @@ -21,79 +21,80 @@ steps: CODEFIRST_CLIENTDRONE_ENV_POSTGRES_PASSWORD: from_secret: db_password - - name: create-bigbrother-database - image: python:latest - commands: - - cd database/ - - pip install psycopg2 - - python3 db-creation.py - environment: - POSTGRES_USER: - from_secret: db_user - POSTGRES_PASSWORD: - from_secret: db_password - depends_on: [ deploy-container-pgsql ] - - - name: build-image-server - image: plugins/docker - settings: - dockerfile: callback-server/Dockerfile - context: ./ - registry: hub.codefirst.iut.uca.fr - repo: hub.codefirst.iut.uca.fr/felix.mielcarek/big-brother-server - username: - from_secret: SECRET_REGISTRY_USERNAME - password: - from_secret: SECRET_REGISTRY_PASSWORD - depends_on: [ create-bigbrother-database ] - - - name: deploy-container-server - image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest - environment: - IMAGENAME: hub.codefirst.iut.uca.fr/felix.mielcarek/big-brother-server:latest - CONTAINERNAME: bigbrotherserver - COMMAND: create - OVERWRITE: true - POSTGRES_USER: - from_secret: db_user - POSTGRES_PASSWORD: - from_secret: db_password - POSTGRES_DATABASE: - from_secret: db_database - CLIENT_ID: - from_secret: spotify_client_id - CLIENT_SECRET: - from_secret: spotify_client_id - depends_on: [ build-image-server ] - - - name: build-image-script - image: plugins/docker - settings: - dockerfile: script/Dockerfile - context: ./ - registry: hub.codefirst.iut.uca.fr - repo: hub.codefirst.iut.uca.fr/felix.mielcarek/big-brother - username: - from_secret: SECRET_REGISTRY_USERNAME - password: - from_secret: SECRET_REGISTRY_PASSWORD - depends_on: [ create-bigbrother-database ] - - - name: deploy-container-script - image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest - environment: - IMAGENAME: hub.codefirst.iut.uca.fr/felix.mielcarek/big-brother:latest - CONTAINERNAME: bigbrotherscript - COMMAND: create - OVERWRITE: true - POSTGRES_USER: - from_secret: db_user - POSTGRES_PASSWORD: - from_secret: db_password - POSTGRES_DATABASE: - from_secret: db_database - CLIENT_ID: - from_secret: spotify_client_id - CLIENT_SECRET: - from_secret: spotify_client_id - depends_on: [ build-image-script ] +# - name: create-bigbrother-database +# image: python:latest +# commands: +# - cd database/ +# - pip install psycopg2 +# - python3 db-creation.py +# environment: +# POSTGRES_USER: +# from_secret: db_user +# POSTGRES_PASSWORD: +# from_secret: db_password +# depends_on: [ deploy-container-pgsql ] +# +# - name: build-image-server +# image: plugins/docker +# settings: +# dockerfile: callback-server/Dockerfile +# context: ./ +# registry: hub.codefirst.iut.uca.fr +# repo: hub.codefirst.iut.uca.fr/felix.mielcarek/big-brother-server +# username: +# from_secret: SECRET_REGISTRY_USERNAME +# password: +# from_secret: SECRET_REGISTRY_PASSWORD +# depends_on: [ create-bigbrother-database ] +# +# - name: deploy-container-server +# image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest +# environment: +# IMAGENAME: hub.codefirst.iut.uca.fr/felix.mielcarek/big-brother-server:latest +# CONTAINERNAME: bigbrotherserver +# COMMAND: create +# OVERWRITE: true +# POSTGRES_USER: +# from_secret: db_user +# POSTGRES_PASSWORD: +# from_secret: db_password +# POSTGRES_DATABASE: +# from_secret: db_database +# CLIENT_ID: +# from_secret: spotify_client_id +# CLIENT_SECRET: +# from_secret: spotify_client_id +# depends_on: [ build-image-server ] +# +# - name: build-image-script +# image: plugins/docker +# settings: +# dockerfile: script/Dockerfile +# context: ./ +# registry: hub.codefirst.iut.uca.fr +# repo: hub.codefirst.iut.uca.fr/felix.mielcarek/big-brother +# username: +# from_secret: SECRET_REGISTRY_USERNAME +# password: +# from_secret: SECRET_REGISTRY_PASSWORD +# depends_on: [ create-bigbrother-database ] +# +# - name: deploy-container-script +# image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest +# environment: +# IMAGENAME: hub.codefirst.iut.uca.fr/felix.mielcarek/big-brother:latest +# CONTAINERNAME: bigbrotherscript +# COMMAND: create +# OVERWRITE: true +# POSTGRES_USER: +# from_secret: db_user +# POSTGRES_PASSWORD: +# from_secret: db_password +# POSTGRES_DATABASE: +# from_secret: db_database +# CLIENT_ID: +# from_secret: spotify_client_id +# CLIENT_SECRET: +# from_secret: spotify_client_id +# depends_on: [ build-image-script ] +# \ No newline at end of file