From e9e667945a43af28e1c76e43fef1eec574832877 Mon Sep 17 00:00:00 2001 From: Matthew Richards Date: Thu, 21 Dec 2023 11:16:39 +0000 Subject: [PATCH] Remove DG & Search API sections from config --- .github/workflows/ci-build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 473c622c..1a235bc0 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -397,10 +397,12 @@ jobs: '.datagateway_api.extension="/datagateway_api"' datagateway_api/config.yaml.example`" > datagateway_api/config.yaml.example - name: Create config.yaml run: cp datagateway_api/config.yaml.example datagateway_api/config.yaml + # These sections are removed so the API doesn't try to (and fail) to connect to an ICAT stack on startup + - name: Remove DataGateway API and Search API sections from config + run: yq -i 'del(.datagateway_api, .search_api)' datagateway_api/config.yaml - name: Create search_api_mapping.json run: cp datagateway_api/search_api_mapping.json.example datagateway_api/search_api_mapping.json - # Launch API to see if it starts correctly or has a startup issue # Code logic used from https://stackoverflow.com/a/63643845 - name: Start API