File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 branches :
66 - feature/rgjb-eli-604-rotate_proxygen_key_in_ptl_and_prod
77
8-
98jobs :
109 metadata :
1110 name : " Set CI/CD metadata"
@@ -103,7 +102,7 @@ jobs:
103102 PROXYGEN_PRIVATE_KEY : ${{ secrets.PROXYGEN_PRIVATE_KEY_PROD }}
104103 run : |
105104 mkdir -p ~/.proxygen
106- echo "$PROXYGEN_PRIVATE_KEY" > ~/.proxygen/eligibility-signposting-api-prod .pem
105+ echo "$PROXYGEN_PRIVATE_KEY" > ~/.proxygen/eligibility-signposting-api.pem
107106 make setup-proxygen-credentials ENV=prod
108107 - name : Generate specification
109108 run : |
Original file line number Diff line number Diff line change @@ -67,9 +67,14 @@ retrieve-proxygen-key: guard-ENV
6767# This location required location for local proxygen usage
6868setup-proxygen-credentials : guard-ENV
6969 @ cd specification && \
70- cp .proxygen/credentials-$(ENV ) .yaml ~ /.proxygen/credentials.yaml && \
71- cp .proxygen/settings-$(ENV ) .yaml ~ /.proxygen/settings.yaml && \
72- echo " Set up proxygen credentials for the APIM '$( ENV) ' environment"
70+ if [ -f " .proxygen/credentials-$( ENV) .yaml" ] && [ -f " .proxygen/settings-$( ENV) .yaml" ]; then \
71+ cp .proxygen/credentials-$(ENV ) .yaml ~ /.proxygen/credentials.yaml && \
72+ cp .proxygen/settings-$(ENV ) .yaml ~ /.proxygen/settings.yaml && \
73+ echo " Set up proxygen credentials for the APIM '$( ENV) ' environment"
74+ else \
75+ cp -r .proxygen ~
76+ fi
77+
7378
7479get-spec : # Get the most recent specification live in proxygen
7580 $(MAKE ) setup-proxygen-credentials ENV=prod
You can’t perform that action at this time.
0 commit comments