forked from NangoHQ/nango
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 1.21 KB
/
docker.yaml
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
name: Docker Check
on:
push:
branches:
- master
- staging/**
pull_request:
concurrency:
group: docker-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
docker_check_job:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build the docker-compose stack
run: docker compose up -d
- name: Sleep
uses: jakejarvis/wait-action@master
with:
time: '30s'
- name: Verify containers
run: |
CONTAINER_NAME=nango-server
SERVER=$(docker ps -q -f status=running -f name=^/${CONTAINER_NAME}$)
if [ ! "${SERVER}" ]; then
echo "Server container doesn't exist"
exit 1
fi
CONTAINER_NAME=nango-db
DB=$(docker ps -q -f status=running -f name=^/${CONTAINER_NAME}$)
if [ ! "${DB}" ]; then
echo "DB container doesn't exist"
exit 1
fi
shell: bash