File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Run deploy
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ branches :
7+ - infra-test
8+ paths :
9+ - ' client/**'
10+ - ' cms/**'
11+ - ' .github/workflows/*'
12+
13+ env :
14+ PROJECT_NAME : ' esa-gda-comms'
15+ IMAGE_REGISTRY : ' registry.digitalocean.com/esa-gda-comms'
16+
17+ jobs :
18+ build_client_image :
19+ name : Build Client image and push to DO Container Registry
20+ runs-on : ubuntu-22.04
21+ steps :
22+ - name : Checkout code
23+ uses : actions/checkout@v3
24+
25+ - name : Create client env file for build
26+ run : |
27+ echo "${{ secrets.STAGING_CLIENT_ENV_FILE }}" > client/.env.local
28+
29+ - name : Debug - Show env file contents
30+ run : |
31+ cat client/.env.local
32+
33+ build_cms_image :
34+ name : Build CMS image and push to DO Container Registry
35+ runs-on : ubuntu-22.04
36+ steps :
37+ - name : Checkout code
38+ uses : actions/checkout@v3
39+
40+ - name : Create CMS env file for build
41+ run : |
42+ echo "${{ secrets.STAGING_CMS_ENV_FILE }}" > cms/.env
43+
44+ - name : Debug - Show env file contents
45+ run : |
46+ cat cms/.env
You can’t perform that action at this time.
0 commit comments