File tree Expand file tree Collapse file tree 5 files changed +16
-15
lines changed
specification/api/components/x-nhsd-apim Expand file tree Collapse file tree 5 files changed +16
-15
lines changed Original file line number Diff line number Diff line change @@ -43,11 +43,19 @@ lint-oas:
4343publish-oas :
4444 npm run publish-oas
4545
46+ set-target : guard-APIM_ENV
47+ @ TARGET=target-$$ APIM_ENV.yml \
48+ envsubst ' $${TARGET}' \
49+ < specification/api/components/x-nhsd-apim/target-template.yml > specification/api/components/x-nhsd-apim/target.yml
50+
51+ set-access : guard-APIM_ENV
52+ @ ACCESS=access-$$ APIM_ENV.yml \
53+ envsubst ' $${ACCESS}' \
54+ < specification/api/components/x-nhsd-apim/access-template.yml > specification/api/components/x-nhsd-apim/access.yml
55+
4656construct-spec : guard-APIM_ENV
47- cd specification/api/components/x-nhsd-apim
48- cp access-$(APIM_ENV ) .yml access.yml
49- cp target-$(APIM_ENV ) .yml target.yml
50- cd -
57+ $(MAKE ) set-target APIM_ENV=$$ APIM_ENV
58+ $(MAKE ) set-access APIM_ENV=$$ APIM_ENV
5159
5260build-json-oas-spec : guard-APIM_ENV
5361 $(MAKE ) construct-spec APIM_ENV=$$ APIM_ENV
Original file line number Diff line number Diff line change 1+ ref : $ACCESS
Original file line number Diff line number Diff line change 1- []
1+ ref : access-sandbox.yml
Original file line number Diff line number Diff line change 1+ $ref : $TARGET
Original file line number Diff line number Diff line change 1- type : hosted
2- healthcheck : /_status
3- containers :
4- - name : nhs-notify-supplier
5- image :
6- name : nhs-notify-supplier
7- tag : pr99
8- environment :
9- LOG_LEVEL : info
10- NODE_ENV : development
1+ $ref : target-sandbox.yml
You can’t perform that action at this time.
0 commit comments