-
-
Notifications
You must be signed in to change notification settings - Fork 8
36 lines (29 loc) · 866 Bytes
/
consul.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
# Github action to build, run and test a Docker image.
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Installing dependencies
run: pip install -r requirements.txt
- name: Building Docker image
run: docker build -t wdijkerman/consul .
- name: Start Consul
run: |
docker-compose up -d consul
while [[ $(docker logs consul 2>&1 | grep 'agent: Synced node info' | wc -l) -eq 0 ]];do
echo 'Waiting for proper boot'
sleep 5
done
- name: Execute testinfra
run: py.test -v --connection=docker --hosts=consul