@@ -23,50 +23,49 @@ jobs:
2323 echo "Deploying to: DEV & Sandbox"
2424 echo "VERSION=${{ steps.variables.outputs.version }}"
2525
26- # internal-dev:
27- # name: "Publish spec & deploy to dev"
28- # needs: metadata
29- # runs-on: ubuntu-latest
30- # if: false # Skip this job
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_PTL }}
59- # run: |
60- # mkdir -p ~/.proxygen
61- # echo "$PROXYGEN_PRIVATE_KEY" > ~/.proxygen/eligibility-signposting-api.pem
62- # make setup-proxygen-credentials ENV=ptl
63- # - name: Generate specification
64- # run: |
65- # make construct-spec APIM_ENV=internal-dev
66- #
67- # - name: Deploy internal-dev spec to Proxygen
68- # run: |
69- # proxygen instance deploy internal-dev eligibility-signposting-api build/specification/internal-dev/eligibility-signposting-api.yaml --no-confirm
26+ internal-dev :
27+ name : " Publish spec & deploy to 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_PROD }}
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 : Deploy internal-dev spec to Proxygen
67+ run : |
68+ proxygen instance deploy internal-dev eligibility-signposting-api build/specification/internal-dev/eligibility-signposting-api.yaml --no-confirm
7069
7170 sandbox :
7271 name : " Publish spec & deploy to sandbox"
@@ -102,8 +101,8 @@ jobs:
102101 PROXYGEN_PRIVATE_KEY : ${{ secrets.PROXYGEN_PRIVATE_KEY_PROD }}
103102 run : |
104103 mkdir -p ~/.proxygen
105- echo "$PROXYGEN_PRIVATE_KEY" > ~/.proxygen/eligibility-signposting-api-prod .pem
106- make setup-proxygen-credentials ENV=prod
104+ echo "$PROXYGEN_PRIVATE_KEY" > ~/.proxygen/eligibility-signposting-api.pem
105+ make setup-proxygen-credentials
107106
108107 - name : Generate specification
109108 run : |
@@ -159,7 +158,7 @@ jobs:
159158
160159 tag_deployment :
161160 name : " Tag Dev & Sandbox deployment"
162- needs : [metadata, publish_postman]
161+ needs : [ metadata, publish_postman ]
163162 runs-on : ubuntu-latest
164163 steps :
165164 - name : Checkout repository
0 commit comments