|
|
|
@ -19,7 +19,7 @@ steps:
|
|
|
|
|
registry: hub.codefirst.iut.uca.fr
|
|
|
|
|
repo: hub.codefirst.iut.uca.fr/maxime.batista/iqball-api-dotnet
|
|
|
|
|
tags:
|
|
|
|
|
- ${DRONE_BRANCH}
|
|
|
|
|
- ${DRONE_BRANCH/\//_}
|
|
|
|
|
username:
|
|
|
|
|
from_secret: SECRET_REGISTRY_USERNAME
|
|
|
|
|
password:
|
|
|
|
@ -39,36 +39,36 @@ steps:
|
|
|
|
|
- chmod 0600 ~/.ssh
|
|
|
|
|
- chmod 0500 ~/.ssh/id_rsa*
|
|
|
|
|
- rsync -avz -e "ssh -p 80 -o 'StrictHostKeyChecking=no'" ci/deploy_staging_server.sh iqball@maxou.dev:/srv/www/iqball/$DRONE_BRANCH
|
|
|
|
|
- ssh -p 80 -o 'StrictHostKeyChecking=no' iqball@maxou.dev "chmod +x /srv/www/iqball/$DRONE_BRANCH/deploy_staging_server.sh && /srv/www/iqball/$DRONE_BRANCH/deploy_staging_server.sh $DRONE_BRANCH"
|
|
|
|
|
- ssh -p 80 -o 'StrictHostKeyChecking=no' iqball@maxou.dev "chmod +x /srv/www/iqball/$DRONE_BRANCH/deploy_staging_server.sh && /srv/www/iqball/$DRONE_BRANCH/deploy_staging_server.sh $(echo $DRONE_BRANCH | tr / _) $DRONE_COMMIT_SHA"
|
|
|
|
|
|
|
|
|
|
# Deploy the production database and server on codefirst
|
|
|
|
|
- image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
|
|
|
|
|
name: "Instantiate dotnet api docker image on codefirst"
|
|
|
|
|
depends_on:
|
|
|
|
|
- "build and push docker image"
|
|
|
|
|
environment:
|
|
|
|
|
IMAGENAME: hub.codefirst.iut.uca.fr/maxime.batista/iqball-api-dotnet:master
|
|
|
|
|
CONTAINERNAME: iqball_production_dotnet_webserver
|
|
|
|
|
OVERWRITE: true
|
|
|
|
|
COMMAND: create
|
|
|
|
|
|
|
|
|
|
CODEFIRST_CLIENTDRONE_ENV_PGSQL_DSN:
|
|
|
|
|
from_secret: POSTGRES_DSN
|
|
|
|
|
ADMINS: maximebatista
|
|
|
|
|
|
|
|
|
|
- image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
|
|
|
|
|
name: "Instantiate pgsql database docker image on codefirst"
|
|
|
|
|
depends_on:
|
|
|
|
|
- "build and push docker image"
|
|
|
|
|
environment:
|
|
|
|
|
IMAGENAME: postgres
|
|
|
|
|
CONTAINERNAME: iqball_production_database
|
|
|
|
|
COMMAND: create
|
|
|
|
|
|
|
|
|
|
CODEFIRST_CLIENTDRONE_ENV_POSTGRES_PASSWORD:
|
|
|
|
|
from_secret: POSTGRES_PASSWORD
|
|
|
|
|
CODEFIRST_CLIENTDRONE_ENV_POSTGRES_USER:
|
|
|
|
|
from_secret: POSTGRES_USER
|
|
|
|
|
CODEFIRST_CLIENTDRONE_ENV_POSTGRES_DB:
|
|
|
|
|
from_secret: POSTGRES_DB
|
|
|
|
|
ADMINS: maximebatista
|
|
|
|
|
# Deploy the production database and server on codefirst
|
|
|
|
|
# - image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
|
|
|
|
|
# name: "Instantiate dotnet api docker image on codefirst"
|
|
|
|
|
# depends_on:
|
|
|
|
|
# - "build and push docker image"
|
|
|
|
|
# environment:
|
|
|
|
|
# IMAGENAME: hub.codefirst.iut.uca.fr/maxime.batista/iqball-api-dotnet:master
|
|
|
|
|
# CONTAINERNAME: iqball_production_dotnet_webserver
|
|
|
|
|
# OVERWRITE: true
|
|
|
|
|
# COMMAND: create
|
|
|
|
|
#
|
|
|
|
|
# CODEFIRST_CLIENTDRONE_ENV_PGSQL_DSN:
|
|
|
|
|
# from_secret: POSTGRES_DSN
|
|
|
|
|
# ADMINS: maximebatista
|
|
|
|
|
#
|
|
|
|
|
# - image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
|
|
|
|
|
# name: "Instantiate pgsql database docker image on codefirst"
|
|
|
|
|
# depends_on:
|
|
|
|
|
# - "build and push docker image"
|
|
|
|
|
# environment:
|
|
|
|
|
# IMAGENAME: postgres
|
|
|
|
|
# CONTAINERNAME: iqball_production_database
|
|
|
|
|
# COMMAND: create
|
|
|
|
|
#
|
|
|
|
|
# CODEFIRST_CLIENTDRONE_ENV_POSTGRES_PASSWORD:
|
|
|
|
|
# from_secret: POSTGRES_PASSWORD
|
|
|
|
|
# CODEFIRST_CLIENTDRONE_ENV_POSTGRES_USER:
|
|
|
|
|
# from_secret: POSTGRES_USER
|
|
|
|
|
# CODEFIRST_CLIENTDRONE_ENV_POSTGRES_DB:
|
|
|
|
|
# from_secret: POSTGRES_DB
|
|
|
|
|
# ADMINS: maximebatista
|
|
|
|
|