diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 54bc5971e14..d81901f0987 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -241,6 +241,58 @@ stages: export OKTA_OFFICE_GROUP_ID=notrealgroupId export OKTA_CUSTOMER_GROUP_ID=notrealcustomergroupId +# .setup_host_intergration_tests: &setup_host_intergration_tests +# - echo "Setting up /etc/hosts for local domain simulation" +# - echo "127.0.0.1 milmovelocal" | sudo tee -a /etc/hosts +# - echo "127.0.0.1 officelocal" | sudo tee -a /etc/hosts +# - echo "127.0.0.1 adminlocal" | sudo tee -a /etc/hosts +# - echo "127.0.0.1 primelocal" | sudo tee -a /etc/hosts + +.setup_env_intergration_mtls: &setup_env_intergration_mtls + - | + echo "Setting up environment variables" + export MIL_MOVE_DOD_CA_CERT=$(cat config/tls/devlocal-ca.pem) + export MIL_MOVE_DOD_TLS_CERT=$(cat config/tls/devlocal-https.pem) + export MIL_MOVE_DOD_TLS_KEY=$(cat config/tls/devlocal-https.key) + export CLIENT_AUTH_SECRET_KEY=$(cat config/tls/devlocal-client_auth_secret.key) + export LOGIN_GOV_SECRET_KEY=$(echo $E2E_LOGIN_GOV_SECRET_KEY | base64 --decode) + export HERE_MAPS_APP_ID=$E2E_HERE_MAPS_APP_ID + export HERE_MAPS_APP_CODE=$E2E_HERE_MAPS_APP_CODE + echo "Overriding application-specific configurations" + sed 's,^,export ,' config/env/review.app.env > server_env + source server_env + export HERE_MAPS_GEOCODE_ENDPOINT=https://geocoder.api.here.com/6.2/geocode.json + export HERE_MAPS_ROUTING_ENDPOINT=https://route.api.here.com/routing/7.2/calculateroute.json + export LOGIN_GOV_CALLBACK_PORT=4000 + export LOGIN_GOV_CALLBACK_PROTOCOL=http + make db_dev_create + bin/milmove migrate + mkdir -p build + touch build/index.html + bin/milmove serve 2>&1 | tee server.log & + +.e2e_tests_playwright: &e2e_tests_playwright + - | + echo "Preparing the environment" + export MIL_MOVE_DOD_CA_CERT=$(cat config/tls/devlocal-ca.pem) + export MIL_MOVE_DOD_TLS_CERT=$(cat config/tls/devlocal-https.pem) + export MIL_MOVE_DOD_TLS_KEY=$(cat config/tls/devlocal-https.key) + export CLIENT_AUTH_SECRET_KEY=$(cat config/tls/devlocal-client_auth_secret.key) + export LOGIN_GOV_SECRET_KEY=$(echo $E2E_LOGIN_GOV_SECRET_KEY | base64 --decode) + export HERE_MAPS_APP_ID=$E2E_HERE_MAPS_APP_ID + export HERE_MAPS_APP_CODE=$E2E_HERE_MAPS_APP_CODE + sed 's,^,export ,' config/env/review.app.env > server_env + source server_env + make db_dev_create + bin/milmove migrate + bin/milmove serve & + echo "Waiting for server to start" + dockerize -wait http://milmovelocal:4000 -timeout 5m + echo "Installing Playwright dependencies" + yarn install --frozen-lockfile --cache-folder ~/.cache/yarn + ./node_modules/.bin/playwright install + + sast: stage: pre_checks tags: @@ -832,15 +884,49 @@ integration_tests: integration_test_mtls: stage: test tags: - - $RUNNER_TAG + - $DOCKER_RUNNER_TAG image: $DOCKER_APP_IMAGE + services: + - name: docker:dind + alias: docker + - name: $postgres + - name: $redis + variables: + DOCKER_HOST: "tcp://docker-backend.gitlab-runner.svc.cluster.local:2375" + DOCKER_TLS_CERTDIR: "" + APPLICATION: app + DB_PASSWORD: mysecretpassword + DB_USER_LOW_PRIV: crud + DB_PASSWORD_LOW_PRIV: mysecretpassword + DB_USER: postgres + DB_HOST: localhost + DB_PORT: 5432 + DB_NAME: dev_db + DB_NAME_DEV: dev_db + MIGRATION_MANIFEST: '/builds/milmove/mymove/migrations/app/migrations_manifest.txt' + MIGRATION_PATH: 'file:///builds/milmove/mymove/migrations/app/schema;file:///builds/milmove/mymove/migrations/app/secure' + EIA_KEY: db2522a43820268a41a802a16ae9fd26 # dummy key generated with openssl rand -hex 16 + ENVIRONMENT: development + DOD_CA_PACKAGE: /builds/milmove/mymove/config/tls/milmove-cert-bundle.p7b + POSTGRES_PASSWORD: mysecretpassword + POSTGRES_DB: test_db needs: - pre_deps_yarn - compile_app_server - before_script: *setup_milmove_env + before_script: + - *setup_milmove_env + - *setup_env_intergration_mtls script: - echo "TODO Add steps" - echo "integration_test_mtls" + - echo "Waiting for server to start" + - dockerize -wait http://milmovelocal:4000 -timeout 5m + - echo "Running E2E mTLS tests" + - ./scripts/run-e2e-mtls-test + artifacts: + paths: + - test-results/ + when: always allow_failure: true after_script: - *announce_failure @@ -850,17 +936,55 @@ integration_test_mtls: integration_test_admin: stage: test tags: - - $RUNNER_TAG + - $DOCKER_RUNNER_TAG image: $DOCKER_APP_IMAGE + services: + - name: docker:dind + alias: docker + - name: $postgres + - name: $redis + variables: + DOCKER_HOST: "tcp://docker-backend.gitlab-runner.svc.cluster.local:2375" + DOCKER_TLS_CERTDIR: "" + APPLICATION: app + DB_PASSWORD: mysecretpassword + DB_USER_LOW_PRIV: crud + DB_PASSWORD_LOW_PRIV: mysecretpassword + DB_USER: postgres + DB_HOST: localhost + DB_PORT: 5432 + DB_NAME: dev_db + DB_NAME_DEV: dev_db + MIGRATION_MANIFEST: '/builds/milmove/mymove/migrations/app/migrations_manifest.txt' + MIGRATION_PATH: 'file:///builds/milmove/mymove/migrations/app/schema;file:///builds/milmove/mymove/migrations/app/secure' + EIA_KEY: db2522a43820268a41a802a16ae9fd26 # dummy key generated with openssl rand -hex 16 + ENVIRONMENT: development + DOD_CA_PACKAGE: /builds/milmove/mymove/config/tls/milmove-cert-bundle.p7b + POSTGRES_PASSWORD: mysecretpassword + POSTGRES_DB: test_db needs: - pre_deps_yarn - pre_deps_golang - compile_app_client - compile_app_server - before_script: *setup_milmove_env + before_script: + - *setup_milmove_env + - *e2e_tests_playwright script: - echo "TODO Add steps" - echo "integration_test_admin" + - echo "Running integration tests for Admin" + - ./node_modules/.bin/playwright test playwright/tests/admin \ + --reporter=html,junit \ + --trace=on \ + --workers=1 + artifacts: + paths: + - playwright-report/ + - complete-playwright-report.zip + - playwright-results.xml + when: always + allow_failure: true after_script: - *announce_failure rules: @@ -869,17 +993,55 @@ integration_test_admin: integration_test_my: stage: test tags: - - $RUNNER_TAG + - $DOCKER_RUNNER_TAG image: $DOCKER_APP_IMAGE + services: + - name: docker:dind + alias: docker + - name: $postgres + - name: $redis + variables: + DOCKER_HOST: "tcp://docker-backend.gitlab-runner.svc.cluster.local:2375" + DOCKER_TLS_CERTDIR: "" + APPLICATION: app + DB_PASSWORD: mysecretpassword + DB_USER_LOW_PRIV: crud + DB_PASSWORD_LOW_PRIV: mysecretpassword + DB_USER: postgres + DB_HOST: localhost + DB_PORT: 5432 + DB_NAME: dev_db + DB_NAME_DEV: dev_db + MIGRATION_MANIFEST: '/builds/milmove/mymove/migrations/app/migrations_manifest.txt' + MIGRATION_PATH: 'file:///builds/milmove/mymove/migrations/app/schema;file:///builds/milmove/mymove/migrations/app/secure' + EIA_KEY: db2522a43820268a41a802a16ae9fd26 # dummy key generated with openssl rand -hex 16 + ENVIRONMENT: development + DOD_CA_PACKAGE: /builds/milmove/mymove/config/tls/milmove-cert-bundle.p7b + POSTGRES_PASSWORD: mysecretpassword + POSTGRES_DB: test_db needs: - pre_deps_yarn - pre_deps_golang - compile_app_client - compile_app_server - before_script: *setup_milmove_env + before_script: + - *setup_milmove_env + - *e2e_tests_playwright script: - echo "TODO Add steps" - echo "integration_test_my" + - echo "Running integration tests for My" + - ./node_modules/.bin/playwright test playwright/tests/my \ + --reporter=html,junit \ + --trace=on \ + --workers=1 \ + --shard="$CI_NODE_INDEX/$CI_NODE_TOTAL" + artifacts: + paths: + - playwright-report/ + - complete-playwright-report.zip + - playwright-results.xml + when: always allow_failure: true after_script: - *announce_failure @@ -889,17 +1051,53 @@ integration_test_my: integration_test_office: stage: test tags: - - $RUNNER_TAG + - $DOCKER_RUNNER_TAG image: $DOCKER_APP_IMAGE + services: + - name: docker:dind + alias: docker + - name: $postgres + - name: $redis + variables: + DOCKER_HOST: "tcp://docker-backend.gitlab-runner.svc.cluster.local:2375" + DOCKER_TLS_CERTDIR: "" + APPLICATION: app + DB_PASSWORD: mysecretpassword + DB_USER_LOW_PRIV: crud + DB_PASSWORD_LOW_PRIV: mysecretpassword + DB_USER: postgres + DB_HOST: localhost + DB_PORT: 5432 + DB_NAME: dev_db + DB_NAME_DEV: dev_db + MIGRATION_MANIFEST: '/builds/milmove/mymove/migrations/app/migrations_manifest.txt' + MIGRATION_PATH: 'file:///builds/milmove/mymove/migrations/app/schema;file:///builds/milmove/mymove/migrations/app/secure' + EIA_KEY: db2522a43820268a41a802a16ae9fd26 # dummy key generated with openssl rand -hex 16 + ENVIRONMENT: development + DOD_CA_PACKAGE: /builds/milmove/mymove/config/tls/milmove-cert-bundle.p7b + POSTGRES_PASSWORD: mysecretpassword + POSTGRES_DB: test_db needs: - pre_deps_yarn - pre_deps_golang - compile_app_client - compile_app_server - before_script: *setup_milmove_env + before_script: + - *setup_milmove_env + - *e2e_tests_playwright script: - echo "TODO Add steps" - echo "integration_test_office" + - ./node_modules/.bin/playwright test playwright/tests/office \ + --reporter=html,junit \ + --trace=on \ + --workers=1 + artifacts: + paths: + - playwright-report/ + - complete-playwright-report.zip + - playwright-results.xml + when: always allow_failure: true after_script: - *announce_failure @@ -914,7 +1112,7 @@ build_push_app_dp3: stage: push tags: - $RUNNER_TAG - environment: DP3_ENV + environment: $DP3_ENV image: name: gcr.io/kaniko-project/executor:v1.14.0-debug entrypoint: [""] @@ -937,7 +1135,7 @@ build_push_migrations_dp3: stage: push tags: - $RUNNER_TAG - environment: DP3_ENV + environment: $DP3_ENV image: name: gcr.io/kaniko-project/executor:v1.14.0-debug entrypoint: [""] @@ -960,7 +1158,7 @@ build_push_tasks_dp3: stage: push tags: - $RUNNER_TAG - environment: DP3_ENV + environment: $DP3_ENV image: name: gcr.io/kaniko-project/executor:v1.14.0-debug entrypoint: [""] @@ -983,7 +1181,7 @@ push_otel_collector_image_dp3: stage: push tags: - $RUNNER_TAG - environment: DP3_ENV + environment: $DP3_ENV before_script: - *setup_aws_vars_dp3 - *setup_release_dp3 @@ -1015,7 +1213,7 @@ deploy_migrations_dp3: stage: deploy tags: - $RUNNER_TAG - environment: DP3_ENV + environment: $DP3_ENV image: name: $DOCKER_APP_IMAGE entrypoint: [""] @@ -1046,6 +1244,7 @@ deploy_tasks_dp3: stage: deploy tags: - $RUNNER_TAG + environment: $DP3_ENV image: name: $DOCKER_APP_IMAGE entrypoint: [""] @@ -1073,7 +1272,7 @@ deploy_app_client_tls_dp3: stage: deploy tags: - $RUNNER_TAG - environment: DP3_ENV + environment: $DP3_ENV image: name: $DOCKER_APP_IMAGE entrypoint: [""] @@ -1087,6 +1286,7 @@ deploy_app_client_tls_dp3: HEALTH_CHECK: "true" before_script: - *setup_aws_vars_dp3 + - *setup_tls_vars_dp3 - *setup_release_dp3 script: # - echo "Comparing against deployed commit" @@ -1099,11 +1299,11 @@ deploy_app_client_tls_dp3: - echo "Deploying app-client-tls service" - ./scripts/ecs-deploy-service-container app-client-tls "${ECR_REPOSITORY_URI}/app@${ECR_DIGEST}" "${APP_ENVIRONMENT}" "/bin/milmove serve" - echo "Running Health Check" - # - bin/health-checker --schemes https --hosts api.demo.dp3.us --key ${TLS_KEY} --cert ${TLS_CERT} --ca ${TLS_CA} --tries 10 --backoff 3 --log-level info --timeout 5m - # - echo "Running TLS Check" - # - bin/tls-checker --schemes https --hosts api.demo.dp3.us --key ${TLS_KEY} --cert ${TLS_CERT} --ca ${TLS_CA} --log-level info --timeout 15m - # - echo "Checking deployed commits" - # - ./scripts/check-deployed-commit "api.demo.dp3.us" "$CI_COMMIT_SHA" ${TLS_KEY} ${TLS_CERT} ${TLS_CA} + - bin/health-checker --schemes https --hosts api.$APP_ENVIRONMENT.dp3.us --key ${TLS_KEY} --cert ${TLS_CERT} --ca ${TLS_CA} --tries 10 --backoff 3 --log-level info --timeout 5m + - echo "Running TLS Check" + - bin/tls-checker --schemes https --hosts api.$APP_ENVIRONMENT.dp3.us --key ${TLS_KEY} --cert ${TLS_CERT} --ca ${TLS_CA} --log-level info --timeout 15m + - echo "Checking deployed commits" + - ./scripts/check-deployed-commit "api.$APP_ENVIRONMENT.dp3.us" "$CI_COMMIT_SHA" ${TLS_KEY} ${TLS_CERT} ${TLS_CA} after_script: - *announce_failure rules: @@ -1113,7 +1313,7 @@ deploy_app_dp3: stage: deploy tags: - $RUNNER_TAG - environment: DP3_ENV + environment: $DP3_ENV image: name: $DOCKER_APP_IMAGE entrypoint: [""] @@ -1126,6 +1326,7 @@ deploy_app_dp3: OPEN_TELEMETRY_SIDECAR: "true" HEALTH_CHECK: "true" before_script: + - *setup_tls_vars_dp3 - *setup_aws_vars_dp3 - *setup_release_dp3 script: @@ -1148,11 +1349,11 @@ deploy_app_dp3: - echo "Deploying app service" - ./scripts/ecs-deploy-service-container app "${ECR_REPOSITORY_URI}/app@${ECR_DIGEST}" "${APP_ENVIRONMENT}" "/bin/milmove serve" - echo "Running Health Check" - # - bin/health-checker --schemes https --hosts my.demo.dp3.us,office.demo.dp3.us,admin.demo.dp3.us --tries 10 --backoff 3 --log-level info --timeout 5m - # - echo "Running TLS Check" - # - bin/tls-checker --schemes https --hosts my.demo.dp3.us,office.demo.dp3.us,admin.demo.dp3.us --log-level info --timeout 15m - # - echo "Checking deployed commits" - - ./scripts/check-deployed-commit "my.demo.dp3.us,office.demo.dp3.us,admin.demo.dp3.us" "$CI_COMMIT_SHA" + - bin/health-checker --schemes https --hosts my.$DP3_ENV.dp3.us,office.$DP3_ENV.dp3.us,admin.$DP3_ENV.dp3.us --tries 10 --backoff 3 --log-level info --timeout 5m + - echo "Running TLS Check" + - bin/tls-checker --schemes https --hosts my.$DP3_ENV.dp3.us,office.$DP3_ENV.dp3.us,admin.$DP3_ENV.dp3.us --log-level info --timeout 15m + - echo "Checking deployed commits" + - ./scripts/check-deployed-commit "my.$DP3_ENV.dp3.us,office.$DP3_ENV.dp3.us,admin.$DP3_ENV.dp3.us" "$CI_COMMIT_SHA" after_script: - *announce_failure rules: @@ -1337,6 +1538,7 @@ deploy_app_client_tls_stg: OPEN_TELEMETRY_SIDECAR: "true" HEALTH_CHECK: "true" before_script: + - *setup_tls_vars_stg - *setup_aws_vars_stg - *setup_release_stg script: @@ -1349,12 +1551,13 @@ deploy_app_client_tls_stg: - export OTEL_COLLECTOR_IMAGE="${ECR_REPOSITORY_URI}/otel-collector@${OTEL_ECR_DIGEST}" - echo "Deploying app-client-tls service" - ./scripts/ecs-deploy-service-container app-client-tls "${ECR_REPOSITORY_URI}/app@${ECR_DIGEST}" "${APP_ENVIRONMENT}" "/bin/milmove serve" + #TODO: fix domain make dynamic and pass in preferred - echo "Running Health Check" - # - bin/health-checker --schemes https --hosts api.demo.dp3.us --key ${TLS_KEY} --cert ${TLS_CERT} --ca ${TLS_CA} --tries 10 --backoff 3 --log-level info --timeout 5m - # - echo "Running TLS Check" - # - bin/tls-checker --schemes https --hosts api.demo.dp3.us --key ${TLS_KEY} --cert ${TLS_CERT} --ca ${TLS_CA} --log-level info --timeout 15m - # - echo "Checking deployed commits" - # - ./scripts/check-deployed-commit "api.demo.dp3.us" "$CI_COMMIT_SHA" ${TLS_KEY} ${TLS_CERT} ${TLS_CA} + - bin/health-checker --schemes https --hosts api.$APP_ENVIRONMENT.dp3.us --key ${TLS_KEY} --cert ${TLS_CERT} --ca ${TLS_CA} --tries 10 --backoff 3 --log-level info --timeout 5m + - echo "Running TLS Check" + - bin/tls-checker --schemes https --hosts api.$APP_ENVIRONMENT.dp3.us --key ${TLS_KEY} --cert ${TLS_CERT} --ca ${TLS_CA} --log-level info --timeout 15m + - echo "Checking deployed commits" + - ./scripts/check-deployed-commit "api.$APP_ENVIRONMENT.dp3.us" "$CI_COMMIT_SHA" ${TLS_KEY} ${TLS_CERT} ${TLS_CA} after_script: - *announce_failure rules: @@ -1377,6 +1580,7 @@ deploy_app_stg: OPEN_TELEMETRY_SIDECAR: "true" HEALTH_CHECK: "true" before_script: + - *setup_tls_vars_stg - *setup_aws_vars_stg - *setup_release_stg script: @@ -1398,12 +1602,13 @@ deploy_app_stg: - export OTEL_COLLECTOR_IMAGE="${ECR_REPOSITORY_URI}/otel-collector@${OTEL_ECR_DIGEST}" - echo "Deploying app service" - ./scripts/ecs-deploy-service-container app "${ECR_REPOSITORY_URI}/app@${ECR_DIGEST}" "${APP_ENVIRONMENT}" "/bin/milmove serve" + #TODO: fix domain make dynamic and pass in preferred - echo "Running Health Check" - # - bin/health-checker --schemes https --hosts my.demo.dp3.us,office.demo.dp3.us,admin.demo.dp3.us --tries 10 --backoff 3 --log-level info --timeout 5m - # - echo "Running TLS Check" - # - bin/tls-checker --schemes https --hosts my.demo.dp3.us,office.demo.dp3.us,admin.demo.dp3.us --log-level info --timeout 15m - # - echo "Checking deployed commits" - - ./scripts/check-deployed-commit "my.demo.dp3.us,office.demo.dp3.us,admin.demo.dp3.us" "$CI_COMMIT_SHA" + - bin/health-checker --schemes https --hosts my.$APP_ENVIRONMENT.dp3.us,office.$APP_ENVIRONMENT.dp3.us,admin.$APP_ENVIRONMENT.dp3.us --tries 10 --backoff 3 --log-level info --timeout 5m + - echo "Running TLS Check" + - bin/tls-checker --schemes https --hosts my.$APP_ENVIRONMENT.dp3.us,office.$APP_ENVIRONMENT.dp3.us,admin.$APP_ENVIRONMENT.dp3.us --log-level info --timeout 15m + - echo "Checking deployed commits" + - ./scripts/check-deployed-commit "my.$APP_ENVIRONMENT.dp3.us,office.$APP_ENVIRONMENT.dp3.us,admin.$APP_ENVIRONMENT.dp3.us" "$CI_COMMIT_SHA" after_script: - *announce_failure rules: @@ -1608,6 +1813,7 @@ deploy_app_client_tls_prd: OPEN_TELEMETRY_SIDECAR: "true" HEALTH_CHECK: "true" before_script: + - *setup_tls_vars_prd - *setup_aws_vars_prd - *setup_release_prd script: @@ -1620,12 +1826,13 @@ deploy_app_client_tls_prd: - export OTEL_COLLECTOR_IMAGE="${ECR_REPOSITORY_URI}/otel-collector@${OTEL_ECR_DIGEST}" - echo "Deploying app-client-tls service" - ./scripts/ecs-deploy-service-container app-client-tls "${ECR_REPOSITORY_URI}/app@${ECR_DIGEST}" "${APP_ENVIRONMENT}" "/bin/milmove serve" + #TODO: fix domain make dynamic and pass in preferred - echo "Running Health Check" - # - bin/health-checker --schemes https --hosts api.demo.dp3.us --key ${TLS_KEY} --cert ${TLS_CERT} --ca ${TLS_CA} --tries 10 --backoff 3 --log-level info --timeout 5m - # - echo "Running TLS Check" - # - bin/tls-checker --schemes https --hosts api.demo.dp3.us --key ${TLS_KEY} --cert ${TLS_CERT} --ca ${TLS_CA} --log-level info --timeout 15m - # - echo "Checking deployed commits" - # - ./scripts/check-deployed-commit "api.demo.dp3.us" "$CI_COMMIT_SHA" ${TLS_KEY} ${TLS_CERT} ${TLS_CA} + - bin/health-checker --schemes https --hosts api.$APP_ENVIRONMENT.dp3.us --key ${TLS_KEY} --cert ${TLS_CERT} --ca ${TLS_CA} --tries 10 --backoff 3 --log-level info --timeout 5m + - echo "Running TLS Check" + - bin/tls-checker --schemes https --hosts api.$APP_ENVIRONMENT.dp3.us --key ${TLS_KEY} --cert ${TLS_CERT} --ca ${TLS_CA} --log-level info --timeout 15m + - echo "Checking deployed commits" + - ./scripts/check-deployed-commit "api.$APP_ENVIRONMENT.dp3.us" "$CI_COMMIT_SHA" ${TLS_KEY} ${TLS_CERT} ${TLS_CA} after_script: - *announce_failure rules: @@ -1648,6 +1855,7 @@ deploy_app_prd: OPEN_TELEMETRY_SIDECAR: "true" HEALTH_CHECK: "true" before_script: + - *setup_tls_vars_prd - *setup_aws_vars_prd - *setup_release_prd script: @@ -1669,12 +1877,13 @@ deploy_app_prd: - export OTEL_COLLECTOR_IMAGE="${ECR_REPOSITORY_URI}/otel-collector@${OTEL_ECR_DIGEST}" - echo "Deploying app service" - ./scripts/ecs-deploy-service-container app "${ECR_REPOSITORY_URI}/app@${ECR_DIGEST}" "${APP_ENVIRONMENT}" "/bin/milmove serve" + #TODO: fix domain make dynamic and pass in preferred - echo "Running Health Check" - # - bin/health-checker --schemes https --hosts my.demo.dp3.us,office.demo.dp3.us,admin.demo.dp3.us --tries 10 --backoff 3 --log-level info --timeout 5m - # - echo "Running TLS Check" - # - bin/tls-checker --schemes https --hosts my.demo.dp3.us,office.demo.dp3.us,admin.demo.dp3.us --log-level info --timeout 15m - # - echo "Checking deployed commits" - - ./scripts/check-deployed-commit "my.demo.dp3.us,office.demo.dp3.us,admin.demo.dp3.us" "$CI_COMMIT_SHA" + - bin/health-checker --schemes https --hosts my.$APP_ENVIRONMENT.dp3.us,office.$APP_ENVIRONMENT.dp3.us,admin.$APP_ENVIRONMENT.dp3.us --tries 10 --backoff 3 --log-level info --timeout 5m + - echo "Running TLS Check" + - bin/tls-checker --schemes https --hosts my.$APP_ENVIRONMENT.dp3.us,office.$APP_ENVIRONMENT.dp3.us,admin.$APP_ENVIRONMENT.dp3.us --log-level info --timeout 15m + - echo "Checking deployed commits" + - ./scripts/check-deployed-commit "my.$APP_ENVIRONMENT.dp3.us,office.$APP_ENVIRONMENT.dp3.us,admin.$APP_ENVIRONMENT.dp3.us" "$CI_COMMIT_SHA" after_script: - *announce_failure rules: