File tree Expand file tree Collapse file tree 1 file changed +57
-0
lines changed
Expand file tree Collapse file tree 1 file changed +57
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy Sandbox API and Docker Image
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ branches :
7+ - main
8+
9+ env :
10+ APIM_ENV : sandbox
11+
12+ jobs :
13+ deploy-sandbox :
14+ runs-on : ubuntu-latest
15+
16+ steps :
17+ - name : Checkout repository
18+ uses : actions/checkout@v4
19+
20+ - name : Set up Python 3.11
21+ uses : actions/setup-python@v5
22+ with :
23+ python-version : ' 3.11'
24+
25+ - name : Set up Node.js
26+ uses : actions/setup-node@v4
27+ with :
28+ node-version : ' 20'
29+
30+ - name : Install Python and Node dependencies
31+ run : |
32+ make install
33+
34+ - name : Install proxygen-cli
35+ run : |
36+ pip install proxygen-cli
37+
38+ - name : Set up Proxygen credentials
39+ env :
40+ PROXYGEN_PRIVATE_KEY : ${{ secrets.PROXYGEN_PRIVATE_KEY }}
41+ run : |
42+ mkdir -p ~/.proxygen
43+ echo "$PROXYGEN_PRIVATE_KEY" > ~/.proxygen/eligibility-signposting-api.pem
44+ make setup-proxygen-credentials
45+
46+ - name : Generate sandbox specification
47+ run : |
48+ make construct-spec APIM_ENV=sandbox
49+ make generate-sandbox-spec
50+
51+ - name : Deploy sandbox spec to Proxygen
52+ run : |
53+ proxygen instance deploy sandbox eligibility-signposting-api build/specification/sandbox/eligibility-signposting-api.yaml
54+
55+ - name : Build and publish sandbox Docker image
56+ run : |
57+ make build-and-publish-sandbox-image
You can’t perform that action at this time.
0 commit comments