@@ -24,36 +24,98 @@ jobs:
2424 echo "VERSION=${{ steps.variables.outputs.version }}"
2525
2626 dev :
27+ needs : metadata
2728 runs-on : ubuntu-latest
2829 steps :
29- - uses : actions/checkout@v6
30- - uses : actions/setup-python@v6
30+ - name : Checkout repository
31+ uses : actions/checkout@v6
32+
33+ - name : Set up Python 3.11
34+ uses : actions/setup-python@v6
3135 with :
3236 python-version : ' 3.11'
33- - uses : actions/setup-node@v6
37+
38+ - name : Set up Node.js
39+ uses : actions/setup-node@v6
3440 with :
3541 node-version : ' 20'
36- - run : make install
37- - run : make construct-spec APIM_ENV=dev
38- - run : make publish-spec APIM_ENV=dev
39- - run : make deploy-spec APIM_ENV=dev
42+
43+ - name : Install Poetry
44+ run : curl -sSL https://install.python-poetry.org | python3 -
45+
46+ - name : Install Python and Node dependencies
47+ run : |
48+ make install
49+
50+ - name : Install proxygen-cli
51+ run : |
52+ pip install proxygen-cli
53+
54+ - name : Set up Proxygen credentials
55+ env :
56+ PROXYGEN_PRIVATE_KEY : ${{ secrets.PROXYGEN_PRIVATE_KEY }}
57+ run : |
58+ mkdir -p ~/.proxygen
59+ echo "$PROXYGEN_PRIVATE_KEY" > ~/.proxygen/eligibility-signposting-api.pem
60+ make setup-proxygen-credentials
61+ - name : Generate specification
62+ run : |
63+ make construct-spec APIM_ENV=dev
64+
65+ - name : Publish dev spec to Proxygen
66+ run : |
67+ proxygen spec publish build/specification/dev/eligibility-signposting-api.yaml --no-confirm
68+
69+ - name : Deploy dev spec to Proxygen
70+ run : |
71+ proxygen instance deploy dev eligibility-signposting-api build/specification/dev/eligibility-signposting-api.yaml --no-confirm
4072
4173 sandbox :
4274 needs : dev
4375 runs-on : ubuntu-latest
4476 steps :
45- - uses : actions/checkout@v6
46- - uses : actions/setup-python@v6
77+ - name : Checkout repository
78+ uses : actions/checkout@v6
79+
80+ - name : Set up Python 3.11
81+ uses : actions/setup-python@v6
4782 with :
4883 python-version : ' 3.11'
49- - uses : actions/setup-node@v6
84+
85+ - name : Set up Node.js
86+ uses : actions/setup-node@v6
5087 with :
5188 node-version : ' 20'
52- - run : make install
53- - run : make construct-spec APIM_ENV=sandbox
54- - run : make generate-sandbox-spec
55- - run : make deploy-sandbox-spec
56- - run : make build-and-publish-sandbox-image
89+
90+ - name : Install Poetry
91+ run : curl -sSL https://install.python-poetry.org | python3 -
92+
93+ - name : Install Python and Node dependencies
94+ run : |
95+ make install
96+
97+ - name : Install proxygen-cli
98+ run : |
99+ pip install proxygen-cli
100+
101+ - name : Set up Proxygen credentials
102+ env :
103+ PROXYGEN_PRIVATE_KEY : ${{ secrets.PROXYGEN_PRIVATE_KEY }}
104+ run : |
105+ mkdir -p ~/.proxygen
106+ echo "$PROXYGEN_PRIVATE_KEY" > ~/.proxygen/eligibility-signposting-api.pem
107+ make setup-proxygen-credentials
108+ - name : Generate specification
109+ run : |
110+ make construct-spec APIM_ENV=sandbox
111+
112+ - name : Publish sandbox spec to Proxygen
113+ run : |
114+ proxygen spec publish build/specification/sandbox/eligibility-signposting-api.yaml --no-confirm
115+
116+ - name : Deploy sandbox spec to Proxygen
117+ run : |
118+ proxygen instance deploy sandbox eligibility-signposting-api build/specification/sandbox/eligibility-signposting-api.yaml --no-confirm
57119
58120 publish_postman :
59121 needs : sandbox
0 commit comments