Skip to content

Commit 3e2f03d

Browse files
committed
infra test
1 parent 261e2d2 commit 3e2f03d

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/deploy-test.yml

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

0 commit comments

Comments
 (0)