Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0f5ce5ae authored by Deborah Quarshie's avatar Deborah Quarshie
Browse files

Update-cicd-to-reflect-new-server

parent 84b49f84
Loading
Loading
Loading
Loading
+5 −26
Original line number Diff line number Diff line
@@ -139,44 +139,23 @@ nginx_container_scanner:
    - echo "Stopping $CI_ENVIRONMENT_NAME ($DEPLOYMENT_HOST)"
    - ssh $SSH_USER@$DEPLOYMENT_HOST "cd $DEPLOYMENT_PATH && docker-compose stop"

deploy:web01:
deploy:docs01:
  extends: .deploy:compose
  environment:
    name: prod/web01
    name: prod/docs01
    url: https://support.e.foundation
    on_stop: stop:web01
    on_stop: stop:docs01
  only:
    - master
  variables:
    IMAGE_TAG: $CI_COMMIT_REF_SLUG
    DEPLOYMENT_DELAY: 0

deploy:web02:
  extends: .deploy:compose
  environment:
    name: prod/web02
    url: https://support.e.foundation
    on_stop: stop:web02
  only:
    - master
  variables:
    IMAGE_TAG: $CI_COMMIT_REF_SLUG
    DEPLOYMENT_DELAY: 120

stop:web01:
  stage: deploy
  extends: .stop:compose
  when: manual
  environment:
    name: prod/web01
    url: https://support.e.foundation
    action: stop

stop:web02:
stop:docs01:
  stage: deploy
  extends: .stop:compose
  when: manual
  environment:
    name: prod/web02
    name: prod/docs01
    url: https://support.e.foundation
    action: stop