diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 22f8df4c..1ca23afc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -50,40 +50,3 @@ jobs: run: | pip install schemathesis schemathesis run --hypothesis-phases=explicit http://localhost:8080/api/v1/energy-labels-openapi.json - -# - name: Install cf client -# env: -# CF_CLI_VERSION: v6 -# run: | -# mkdir -p $GITHUB_WORKSPACE/bin -# curl -L "https://packages.cloudfoundry.org/stable?release=linux64-binary&version=${CF_CLI_VERSION}" | tar -zx -C $GITHUB_WORKSPACE/bin -# echo "$GITHUB_WORKSPACE/bin" >> $GITHUB_PATH -# -# - name: Deploy QA -# if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/qa' }} -# env: -# CF_USERNAME: ${{ secrets.CF_USERNAME }} -# CF_PASSWORD: ${{ secrets.CF_PASSWORD }} -# run: | -# cf api api.london.cloud.service.gov.uk -# cf auth -# cf target -o beis-energy-label-service -s energy-label-service-qa -# cf push -f manifest-qa.yml -# cf logout -# -# - name: Deploy prod -# if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} -# env: -# API: api.london.cloud.service.gov.uk -# APP: energy-label-service-prod -# ORG: beis-energy-label-service -# SPACE: energy-label-service-prod -# MANIFEST: manifest-prod.yml -# SMOKE_TEST: ci/smoke-test.sh -# DELETE_OLD_APPS: true -# USER: ${{ secrets.CF_USERNAME }} -# CF_PASS: ${{ secrets.CF_PASSWORD }} -# run: | -# chmod +x ci/blue-green-deploy.sh -# chmod +x ci/smoke-test.sh -# ci/blue-green-deploy.sh diff --git a/manifest-prod.yml b/manifest-prod.yml deleted file mode 100644 index 7bc728b5..00000000 --- a/manifest-prod.yml +++ /dev/null @@ -1,29 +0,0 @@ -applications: - - name: energy-label-service-prod - memory: 1G - instances: 3 - buildpack: java_buildpack - stack: cflinuxfs3 - path: build/libs/energy-label-service-SNAPSHOT.jar - health-check-type: http - health-check-http-endpoint: /health - services: - - syslog-drain - - ga-credentials - routes: - - route: energy-label-service-prod.london.cloudapps.digital - - route: create-energy-label.service.gov.uk - env: - SHOW_START_PAGE: false - HOME_PAGE_URL: https://www.gov.uk/guidance/create-an-energy-label - ENABLE_GOOGLE_ANALYTICS: true - GOOGLE_ANALYTICS_MEASUREMENT_ID: G-MXY8G0TL9D - VALID_REFERER_DOMAIN: https://create-energy-label.service.gov.uk/ - # https://github.com/cloudfoundry/loggregator-release/blob/develop/docs/java-multi-line-work-around.md - LOG_PATTERN: "%d{dd-MM-yyyy HH:mm:ss.SSS} %magenta([%thread]) %highlight(%-5level) %logger.%M - %msg %replace(%ex){'[\r\n]+', 'CF_NEWLINE_PLACEHOLDER'}%nopex %n" - ENABLE_RATE_LIMITING: true - RATE_LIMIT_CAPACITY: 10 - RATE_LIMIT_TIME_VALUE: 30 - RATE_LIMIT_TIME_UNIT: seconds - - diff --git a/manifest-qa.yml b/manifest-qa.yml deleted file mode 100644 index cd53e74c..00000000 --- a/manifest-qa.yml +++ /dev/null @@ -1,20 +0,0 @@ -applications: - - name: energy-label-service-qa - memory: 1G - instances: 1 - buildpack: java_buildpack - stack: cflinuxfs3 - path: build/libs/energy-label-service-SNAPSHOT.jar - health-check-type: http - health-check-http-endpoint: /health - services: - - syslog-drain - - ga-credentials - env: - SHOW_START_PAGE: true - HOME_PAGE_URL: / - ENABLE_GOOGLE_ANALYTICS: true - GOOGLE_ANALYTICS_MEASUREMENT_ID: G-MXY8G0TL9D - VALID_REFERER_DOMAIN: https://energy-label-service-qa.london.cloudapps.digital/ - # https://github.com/cloudfoundry/loggregator-release/blob/develop/docs/java-multi-line-work-around.md - LOG_PATTERN: "%d{dd-MM-yyyy HH:mm:ss.SSS} %magenta([%thread]) %highlight(%-5level) %logger.%M - %msg %replace(%ex){'[\r\n]+', 'CF_NEWLINE_PLACEHOLDER'}%nopex %n"