forked from oppia/oppia
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (47 loc) · 1.23 KB
/
docker_setup.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Docker Setup Test
on:
merge_group:
types: [checks_requested]
push:
branches:
- develop
- release-*
pull_request:
branches:
- develop
- release-*
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04]
steps:
- name: Checkout to the Oppia repository code
uses: actions/checkout@v3
- name: Merge develop branch into the current branch
uses: ./.github/actions/merge
- name: Build Images
run: |
echo ---Building Docker Images---
docker compose build
- name: Start Containers
run: |
echo ---Starting Containers---
docker compose up angular-build -d
docker compose up -d
- name: Checking server reachability
run: |
for i in {1..50}; do
if curl -s http://localhost:8181/; then
echo ---Dev-server is up---
exit 0
else
echo ---Retrying in 30 seconds---
sleep 30
fi
done
echo ---Dev-server is not started after all retries---
exit 1
- name: Stop Containers
run: docker compose down