-
Notifications
You must be signed in to change notification settings - Fork 44
41 lines (33 loc) · 1.03 KB
/
prod_test.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
name: Test the prod network
on:
push:
branches:
- main
jobs:
test-deploy-prod:
env:
net: prod
PASS: ${{ secrets.PASS }}
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: Hi
run: echo "Hello World!"
# - name: Checkout
# uses: actions/checkout@v3
# - name: yaml-lint
# uses: ibiqlik/action-yamllint@v3
# with:
# file_or_dir: atd-inventory/prod/group_vars/ atd-inventory/prod/host_vars/
# config_file: .yamllint.yml
# - name: Start containers
# run: docker-compose -f "docker-compose.yml" up -d --build
# - name: Test with Batfish
# run: docker-compose run atd-cicd python3 batfish-test.py
# - name: Push configurations to prod
# run: |
# docker-compose run atd-cicd ansible-playbook playbooks/atd-fabric-provision.yml \
# -i atd-inventory/prod/hosts.yml
# - name: Stop containers
# if: always()
# run: docker-compose -f "docker-compose.yml" down