|
|
@ -101,14 +101,6 @@ steps:
|
|
|
|
- dotnet publish WF_EF_Api/WfApi/WfApi.csproj -c Release -o out
|
|
|
|
- dotnet publish WF_EF_Api/WfApi/WfApi.csproj -c Release -o out
|
|
|
|
depends_on: [restore & build, test]
|
|
|
|
depends_on: [restore & build, test]
|
|
|
|
|
|
|
|
|
|
|
|
- name: update-database
|
|
|
|
|
|
|
|
image: mcr.microsoft.com/dotnet/sdk:8.0
|
|
|
|
|
|
|
|
commands:
|
|
|
|
|
|
|
|
- cd WF_EF_Api/StubbedContextLib
|
|
|
|
|
|
|
|
- dotnet tool install --global dotnet-ef
|
|
|
|
|
|
|
|
- dotnet ef database update --connection "Server=<DB_SERVER>;Database=<DB_NAME>;User Id=<USER_ID>;Password=<PASSWORD>;"
|
|
|
|
|
|
|
|
depends_on: [publish]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: deploy-api-db
|
|
|
|
- name: deploy-api-db
|
|
|
|
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:
|
|
|
@ -151,6 +143,21 @@ steps:
|
|
|
|
CODEFIRST_CLIENTDRONE_ENV_POSTGRES_DB: "wtf-test"
|
|
|
|
CODEFIRST_CLIENTDRONE_ENV_POSTGRES_DB: "wtf-test"
|
|
|
|
ADMINS: kentinbrongniart,lenibeaulaton,kevinmondejar,louisguichard-montguers,maximerocher,tommynguyen2
|
|
|
|
ADMINS: kentinbrongniart,lenibeaulaton,kevinmondejar,louisguichard-montguers,maximerocher,tommynguyen2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: update-database
|
|
|
|
|
|
|
|
image: mcr.microsoft.com/dotnet/sdk:8.0
|
|
|
|
|
|
|
|
DB_SERVER: "WhatTheFantasy-wtf-api"
|
|
|
|
|
|
|
|
DB_NAME:
|
|
|
|
|
|
|
|
from_secret: POSTGRES_DB_AUTH
|
|
|
|
|
|
|
|
USER_ID:
|
|
|
|
|
|
|
|
from_secret: POSTGRES_USER_AUTH
|
|
|
|
|
|
|
|
PASSWORD:
|
|
|
|
|
|
|
|
from_secret: POSTGRES_PASSWORD_AUTH
|
|
|
|
|
|
|
|
commands:
|
|
|
|
|
|
|
|
- cd WF_EF_Api/StubbedContextLib
|
|
|
|
|
|
|
|
- dotnet tool install --global dotnet-ef
|
|
|
|
|
|
|
|
- dotnet-ef database update --connection "Server=<DB_SERVER>;Database=<DB_NAME>;User Id=<USER_ID>;Password=<PASSWORD>;"
|
|
|
|
|
|
|
|
depends_on: [deploy-api-db,deploy-auth-db,deploy-test-db]
|
|
|
|
|
|
|
|
|
|
|
|
- name: publish-to-registry
|
|
|
|
- name: publish-to-registry
|
|
|
|
image: plugins/docker
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
settings:
|
|
|
|