Skip to content

Commit 1efe487

Browse files
Productionise - 1
1 parent e16e666 commit 1efe487

File tree

12 files changed

+6326
-4851
lines changed

12 files changed

+6326
-4851
lines changed

.devcontainer/devcontainer.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"takumii.markdowntable",
4242
"tamasfe.even-better-toml",
4343
"tomoki1207.pdf",
44+
"vscjava.vscode-java-pack",
4445
"vscode-icons-team.vscode-icons",
4546
"vstirbu.vscode-mermaid-preview",
4647
"wayou.vscode-todo-highlight",
@@ -89,6 +90,9 @@
8990
"version": "8.0"
9091
},
9192
"ghcr.io/devcontainers/features/go:1": {},
93+
"ghcr.io/devcontainers/features/java:1": {
94+
"version": "17"
95+
},
9296
"ghcr.io/devcontainers/features/node:1": {},
9397
"ghcr.io/devcontainers/features/python:1": {},
9498
"ghcr.io/devcontainers/features/ruby:1": {}

.github/actions/build-proxies/action.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,6 @@ runs:
1919
run: npm ci
2020
shell: bash
2121

22-
- name: Build oas
23-
working-directory: .
24-
shell: bash
25-
run: |
26-
make publish-oas
27-
2822
- name: Setup Proxy Name and target
2923
shell: bash
3024
run: |
@@ -58,8 +52,8 @@ runs:
5852
working-directory: .
5953
shell: bash
6054
run: |
61-
make construct-spec APIM_ENV=dev
62-
55+
make build-json-oas-spec APIM_ENV=dev
56+
6357
- name: Set target
6458
shell: bash
6559
run: |
@@ -75,7 +69,7 @@ runs:
7569
working-directory: .
7670
shell: bash
7771
run: |
78-
make construct-spec APIM_ENV=sandbox
72+
make build-json-oas-spec APIM_ENV=sandbox
7973
8074
- name: Deploy to Internal Dev Sandbox
8175
shell: bash

.github/actions/build-sandbox/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
name: "Build Proxies"
2-
description: "Build Proxies"
1+
name: "Build Sandbox"
2+
description: "Build Sandbox"
33
inputs:
44
version:
55
description: "Version number"
@@ -23,7 +23,7 @@ runs:
2323
working-directory: .
2424
shell: bash
2525
run: |
26-
make construct-spec APIM_ENV=sandbox
26+
make build-json-oas-spec APIM_ENV=sandbox
2727
2828
- name: Remove sandbox security
2929
working-directory: ./build

Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,26 @@ construct-spec: guard-APIM_ENV
4848
cp access-$(APIM_ENV).yml access.yml
4949
cp target-$(APIM_ENV).yml target.yml
5050
cd -
51+
52+
build-json-oas-spec: guard-APIM_ENV
53+
$(MAKE) construct-spec APIM_ENV=$$APIM_ENV
5154
$(MAKE) publish-oas
5255

56+
build-yml-oas-spec: guard-APIM_ENV
57+
$(MAKE) construct-spec APIM_ENV=$$APIM_ENV
58+
$(MAKE) bundle-oas
59+
5360
serve-oas:
5461
npm run serve-oas
5562

5663
bundle-oas:
5764
npm run bundle-oas
5865

66+
generate-sandbox:
67+
$(MAKE) build-json-oas-spec APIM_ENV=sandbox
68+
jq --slurpfile status sandbox/HealthcheckEndpoint.json '.paths += $status[0]' build/notify-supplier.json > tmp.json && mv tmp.json build/notify-supplier.json
69+
npm run generate-sandbox
70+
5971
serve-swagger:
6072
npm run serve-swagger-docs
6173

openapitools.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json",
3+
"generator-cli": {
4+
"version": "7.14.0"
5+
},
6+
"spaces": 2
7+
}

0 commit comments

Comments
 (0)