Loading .gitlab-ci.yml +7 −0 Original line number Original line Diff line number Diff line Loading @@ -81,12 +81,16 @@ deploy:spot.test.cloud.global: url: https://spot.test.ecloud.global url: https://spot.test.ecloud.global variables: variables: DOCKER_HOST: ssh://root@spot.test.ecloud.global DOCKER_HOST: ssh://root@spot.test.ecloud.global FILTRON_RULES: /etc/filtron/rules.json SPOT_HOSTNAME: spot.test.ecloud.global SPOT_HOSTNAME: spot.test.ecloud.global SPOT_MORTY_HOSTNAME: proxy.spot.test.ecloud.global SPOT_MORTY_HOSTNAME: proxy.spot.test.ecloud.global SPOT_MORTY_URL: https://proxy.spot.test.ecloud.global SPOT_MORTY_URL: https://proxy.spot.test.ecloud.global COMPOSE_PROJECT_NAME: my-spot COMPOSE_PROJECT_NAME: my-spot SSH_PRIVATE_KEY: ${SSH_PRIVATE_KEY_TEST} SSH_PRIVATE_KEY: ${SSH_PRIVATE_KEY_TEST} script: script: - ssh $DOCKER_HOST "mkdir -p /etc/filtron && echo '$(cat ./etc/filtron/rules.json)' > $FILTRON_RULES" - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY - docker pull registry.gitlab.e.foundation:5000/e/cloud/my-spot/env - docker-compose up -d --build --scale tor=5 - docker-compose up -d --build --scale tor=5 deploy:spot.cloud.global: deploy:spot.cloud.global: Loading @@ -98,6 +102,7 @@ deploy:spot.cloud.global: url: https://spot.ecloud.global url: https://spot.ecloud.global variables: variables: DOCKER_HOST: ssh://root@spot.ecloud.global DOCKER_HOST: ssh://root@spot.ecloud.global FILTRON_RULES: /etc/filtron/rules.json SPOT_HOSTNAME: spot.ecloud.global SPOT_HOSTNAME: spot.ecloud.global SPOT_MORTY_HOSTNAME: proxy.spot.ecloud.global SPOT_MORTY_HOSTNAME: proxy.spot.ecloud.global SPOT_MORTY_URL: https://proxy.spot.ecloud.global SPOT_MORTY_URL: https://proxy.spot.ecloud.global Loading @@ -106,6 +111,8 @@ deploy:spot.cloud.global: SPOT_NGINX_DOCKER_TAG: ${CI_COMMIT_REF_SLUG} SPOT_NGINX_DOCKER_TAG: ${CI_COMMIT_REF_SLUG} SSH_PRIVATE_KEY: ${SSH_PRIVATE_KEY_PROD} SSH_PRIVATE_KEY: ${SSH_PRIVATE_KEY_PROD} script: script: - ssh $DOCKER_HOST "mkdir -p /etc/filtron && echo '$(cat ./etc/filtron/rules.json)' > $FILTRON_RULES" - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY - docker pull registry.gitlab.e.foundation:5000/e/cloud/my-spot/env - docker-compose pull - docker-compose pull - docker-compose up -d --scale tor=5 - docker-compose up -d --scale tor=5 docker-compose.yml +1 −1 Original line number Original line Diff line number Diff line Loading @@ -50,7 +50,7 @@ services: ports: ports: - "8088:3000" - "8088:3000" volumes: volumes: - ./etc/filtron/rules.json:/etc/filtron/rules.json - ${FILTRON_RULES:-./etc/filtron/rules.json}:/etc/filtron/rules.json labels: labels: - "traefik.enable=true" - "traefik.enable=true" - "traefik.http.routers.filtron.rule=Host(`${SPOT_HOSTNAME}`)" - "traefik.http.routers.filtron.rule=Host(`${SPOT_HOSTNAME}`)" Loading Loading
.gitlab-ci.yml +7 −0 Original line number Original line Diff line number Diff line Loading @@ -81,12 +81,16 @@ deploy:spot.test.cloud.global: url: https://spot.test.ecloud.global url: https://spot.test.ecloud.global variables: variables: DOCKER_HOST: ssh://root@spot.test.ecloud.global DOCKER_HOST: ssh://root@spot.test.ecloud.global FILTRON_RULES: /etc/filtron/rules.json SPOT_HOSTNAME: spot.test.ecloud.global SPOT_HOSTNAME: spot.test.ecloud.global SPOT_MORTY_HOSTNAME: proxy.spot.test.ecloud.global SPOT_MORTY_HOSTNAME: proxy.spot.test.ecloud.global SPOT_MORTY_URL: https://proxy.spot.test.ecloud.global SPOT_MORTY_URL: https://proxy.spot.test.ecloud.global COMPOSE_PROJECT_NAME: my-spot COMPOSE_PROJECT_NAME: my-spot SSH_PRIVATE_KEY: ${SSH_PRIVATE_KEY_TEST} SSH_PRIVATE_KEY: ${SSH_PRIVATE_KEY_TEST} script: script: - ssh $DOCKER_HOST "mkdir -p /etc/filtron && echo '$(cat ./etc/filtron/rules.json)' > $FILTRON_RULES" - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY - docker pull registry.gitlab.e.foundation:5000/e/cloud/my-spot/env - docker-compose up -d --build --scale tor=5 - docker-compose up -d --build --scale tor=5 deploy:spot.cloud.global: deploy:spot.cloud.global: Loading @@ -98,6 +102,7 @@ deploy:spot.cloud.global: url: https://spot.ecloud.global url: https://spot.ecloud.global variables: variables: DOCKER_HOST: ssh://root@spot.ecloud.global DOCKER_HOST: ssh://root@spot.ecloud.global FILTRON_RULES: /etc/filtron/rules.json SPOT_HOSTNAME: spot.ecloud.global SPOT_HOSTNAME: spot.ecloud.global SPOT_MORTY_HOSTNAME: proxy.spot.ecloud.global SPOT_MORTY_HOSTNAME: proxy.spot.ecloud.global SPOT_MORTY_URL: https://proxy.spot.ecloud.global SPOT_MORTY_URL: https://proxy.spot.ecloud.global Loading @@ -106,6 +111,8 @@ deploy:spot.cloud.global: SPOT_NGINX_DOCKER_TAG: ${CI_COMMIT_REF_SLUG} SPOT_NGINX_DOCKER_TAG: ${CI_COMMIT_REF_SLUG} SSH_PRIVATE_KEY: ${SSH_PRIVATE_KEY_PROD} SSH_PRIVATE_KEY: ${SSH_PRIVATE_KEY_PROD} script: script: - ssh $DOCKER_HOST "mkdir -p /etc/filtron && echo '$(cat ./etc/filtron/rules.json)' > $FILTRON_RULES" - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY - docker pull registry.gitlab.e.foundation:5000/e/cloud/my-spot/env - docker-compose pull - docker-compose pull - docker-compose up -d --scale tor=5 - docker-compose up -d --scale tor=5
docker-compose.yml +1 −1 Original line number Original line Diff line number Diff line Loading @@ -50,7 +50,7 @@ services: ports: ports: - "8088:3000" - "8088:3000" volumes: volumes: - ./etc/filtron/rules.json:/etc/filtron/rules.json - ${FILTRON_RULES:-./etc/filtron/rules.json}:/etc/filtron/rules.json labels: labels: - "traefik.enable=true" - "traefik.enable=true" - "traefik.http.routers.filtron.rule=Host(`${SPOT_HOSTNAME}`)" - "traefik.http.routers.filtron.rule=Host(`${SPOT_HOSTNAME}`)" Loading