|
|
@ -1,6 +1,6 @@
|
|
|
|
kind: pipeline
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
type: docker
|
|
|
|
name: DB_PIPELINE
|
|
|
|
name: BB_PIPELINE
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
@ -21,23 +21,23 @@ steps:
|
|
|
|
CODEFIRST_CLIENTDRONE_ENV_POSTGRES_PASSWORD:
|
|
|
|
CODEFIRST_CLIENTDRONE_ENV_POSTGRES_PASSWORD:
|
|
|
|
from_secret: db_password
|
|
|
|
from_secret: db_password
|
|
|
|
|
|
|
|
|
|
|
|
# - name: create-bigbrother-database
|
|
|
|
- name: create-bigbrother-database
|
|
|
|
# image: python:latest
|
|
|
|
image: python:latest
|
|
|
|
# commands:
|
|
|
|
commands:
|
|
|
|
# - cd database/
|
|
|
|
- cd database/
|
|
|
|
# - pip install psycopg2
|
|
|
|
- pip install psycopg2
|
|
|
|
# - python3 db-creation.py
|
|
|
|
- python3 db-creation.py
|
|
|
|
# environment:
|
|
|
|
environment:
|
|
|
|
# POSTGRES_USER:
|
|
|
|
POSTGRES_USER:
|
|
|
|
# from_secret: db_user
|
|
|
|
from_secret: db_user
|
|
|
|
# POSTGRES_PASSWORD:
|
|
|
|
POSTGRES_PASSWORD:
|
|
|
|
# from_secret: db_password
|
|
|
|
from_secret: db_password
|
|
|
|
# depends_on: [ deploy-container-pgsql ]
|
|
|
|
depends_on: [ deploy-container-pgsql ]
|
|
|
|
|
|
|
|
|
|
|
|
- name: build-image-webapp
|
|
|
|
- name: build-image-server
|
|
|
|
image: plugins/docker
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
settings:
|
|
|
|
dockerfile: web/Dockerfile
|
|
|
|
dockerfile: callback-server/Dockerfile
|
|
|
|
context: ./
|
|
|
|
context: ./
|
|
|
|
registry: hub.codefirst.iut.uca.fr
|
|
|
|
registry: hub.codefirst.iut.uca.fr
|
|
|
|
repo: hub.codefirst.iut.uca.fr/felix.mielcarek/big-brother
|
|
|
|
repo: hub.codefirst.iut.uca.fr/felix.mielcarek/big-brother
|
|
|
@ -46,11 +46,11 @@ steps:
|
|
|
|
password:
|
|
|
|
password:
|
|
|
|
from_secret: SECRET_REGISTRY_PASSWORD
|
|
|
|
from_secret: SECRET_REGISTRY_PASSWORD
|
|
|
|
|
|
|
|
|
|
|
|
- name: deploy-container-webapp
|
|
|
|
- name: deploy-container-server
|
|
|
|
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
|
|
|
|
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
|
|
|
|
environment:
|
|
|
|
environment:
|
|
|
|
IMAGENAME: hub.codefirst.iut.uca.fr/felix.mielcarek/big-brother:latest
|
|
|
|
IMAGENAME: hub.codefirst.iut.uca.fr/felix.mielcarek/big-brother:latest
|
|
|
|
CONTAINERNAME: bigbrotherwebapp
|
|
|
|
CONTAINERNAME: bigbrotherserver
|
|
|
|
COMMAND: create
|
|
|
|
COMMAND: create
|
|
|
|
OVERWRITE: true
|
|
|
|
OVERWRITE: true
|
|
|
|
POSTGRES_USER:
|
|
|
|
POSTGRES_USER:
|
|
|
@ -63,4 +63,4 @@ steps:
|
|
|
|
from_secret: spotify_client_id
|
|
|
|
from_secret: spotify_client_id
|
|
|
|
CLIENT_SECRET:
|
|
|
|
CLIENT_SECRET:
|
|
|
|
from_secret: spotify_client_id
|
|
|
|
from_secret: spotify_client_id
|
|
|
|
depends_on: [ build-image-webapp ]
|
|
|
|
depends_on: [ build-image-server ]
|
|
|
|