Skip to content

Commit e928b77

Browse files
committed
adding a sandbox deployment github action
1 parent 35bf133 commit e928b77

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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

0 commit comments

Comments
 (0)