@@ -24,55 +24,57 @@ jobs:
2424 echo "Deploying to: DEV & Sandbox"
2525 echo "VERSION=${{ steps.variables.outputs.version }}"
2626
27- # dev:
28- # needs: metadata
29- # runs-on: ubuntu-latest
30- # steps:
31- # - name: Checkout repository
32- # uses: actions/checkout@v6
33- #
34- # - name: Set up Python 3.11
35- # uses: actions/setup-python@v6
36- # with:
37- # python-version: '3.11'
38- #
39- # - name: Set up Node.js
40- # uses: actions/setup-node@v6
41- # with:
42- # node-version: '20'
43- #
44- # - name: Install Poetry
45- # run: curl -sSL https://install.python-poetry.org | python3 -
46- #
47- # - name: Install Python and Node dependencies
48- # run: |
49- # make install
50- #
51- # - name: Install proxygen-cli
52- # run: |
53- # pip install proxygen-cli
54- #
55- # - name: Set up Proxygen credentials
56- # env:
57- # PROXYGEN_PRIVATE_KEY: ${{ secrets.PROXYGEN_PRIVATE_KEY }}
58- # run: |
59- # mkdir -p ~/.proxygen
60- # echo "$PROXYGEN_PRIVATE_KEY" > ~/.proxygen/eligibility-signposting-api.pem
61- # make setup-proxygen-credentials
62- # - name: Generate specification
63- # run: |
64- # make construct-spec APIM_ENV=internal-dev
65- #
66- # - name: Publish internal-dev spec to Proxygen
67- # run: |
68- # proxygen spec publish build/specification/internal-dev/eligibility-signposting-api.yaml --no-confirm
69- #
70- # - name: Deploy internal-dev spec to Proxygen
71- # run: |
72- # proxygen instance deploy internal-dev eligibility-signposting-api build/specification/internal-dev/eligibility-signposting-api.yaml --no-confirm
27+ internal-dev :
28+ name : " Publish spec & deploy to dev"
29+ needs : metadata
30+ runs-on : ubuntu-latest
31+ steps :
32+ - name : Checkout repository
33+ uses : actions/checkout@v6
34+
35+ - name : Set up Python 3.11
36+ uses : actions/setup-python@v6
37+ with :
38+ python-version : ' 3.11'
39+
40+ - name : Set up Node.js
41+ uses : actions/setup-node@v6
42+ with :
43+ node-version : ' 20'
44+
45+ - name : Install Poetry
46+ run : curl -sSL https://install.python-poetry.org | python3 -
47+
48+ - name : Install Python and Node dependencies
49+ run : |
50+ make install
51+
52+ - name : Install proxygen-cli
53+ run : |
54+ pip install proxygen-cli
55+
56+ - name : Set up Proxygen credentials
57+ env :
58+ PROXYGEN_PRIVATE_KEY : ${{ secrets.PROXYGEN_PRIVATE_KEY }}
59+ run : |
60+ mkdir -p ~/.proxygen
61+ echo "$PROXYGEN_PRIVATE_KEY" > ~/.proxygen/eligibility-signposting-api.pem
62+ make setup-proxygen-credentials
63+ - name : Generate specification
64+ run : |
65+ make construct-spec APIM_ENV=internal-dev
66+
67+ - name : Publish internal-dev spec to Proxygen
68+ run : |
69+ proxygen spec publish build/specification/internal-dev/eligibility-signposting-api.yaml --no-confirm
70+
71+ - name : Deploy internal-dev spec to Proxygen
72+ run : |
73+ proxygen instance deploy internal-dev eligibility-signposting-api build/specification/internal-dev/eligibility-signposting-api.yaml --no-confirm
7374
7475 sandbox :
75- needs : metadata
76+ name : " Publish spec & deploy to sandbox"
77+ needs : internal-dev
7678 runs-on : ubuntu-latest
7779 steps :
7880 - name : Checkout repository
@@ -119,6 +121,7 @@ jobs:
119121 proxygen instance deploy sandbox eligibility-signposting-api build/specification/sandbox/eligibility-signposting-api.yaml --no-confirm
120122
121123 publish_postman :
124+ name : " Publish to Postman"
122125 needs : sandbox
123126 runs-on : ubuntu-latest
124127 steps :
@@ -155,6 +158,7 @@ jobs:
155158 -d @wrapped_collection.json
156159
157160 tag_deployment :
161+ name : " Tag Dev & Sandbox deployment"
158162 needs : [metadata, publish_postman]
159163 runs-on : ubuntu-latest
160164 steps :
@@ -168,6 +172,7 @@ jobs:
168172 git push origin ${{ needs.metadata.outputs.version }}
169173
170174 notify_slack :
175+ name : " Notify Slack"
171176 needs : tag_deployment
172177 runs-on : ubuntu-latest
173178 steps :
0 commit comments