-
Notifications
You must be signed in to change notification settings - Fork 630
56 lines (45 loc) · 1.46 KB
/
prod.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
54
55
56
name: Deploy updates
on:
push:
branches:
- main
jobs:
deploy-prod:
env:
LABPASSPHRASE: ${{ secrets.LABPASSPHRASE }}
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: Hi
run: echo "Hello World!"
# - name: Checkout
# uses: actions/checkout@v4
# - name: Setup Python
# uses: actions/setup-python@v5
# - name: Install Python requirements
# run: pip3 install "pyavd[ansible]==4.10.0"
# - name: Run pre-commit on files
# uses: pre-commit/[email protected]
# - name: Check paths for sites/site_1
# uses: dorny/paths-filter@v3
# id: filter-site1
# with:
# filters: |
# workflows:
# - 'sites/site_1/**'
# - name: Check paths for sites/site_2
# uses: dorny/paths-filter@v3
# id: filter-site2
# with:
# filters: |
# workflows:
# - 'sites/site_2/**'
# - name: Install collections
# run: ansible-galaxy collection install -r requirements.yml
# if: steps.filter-site1.outputs.workflows == 'true' || steps.filter-site2.outputs.workflows == 'true'
# - name: Build and deploy site1
# run: make build-site-1 cvp-site-1
# if: steps.filter-site1.outputs.workflows == 'true'
# - name: Build and deploy site2
# run: make build-site-2 cvp-site-2
# if: steps.filter-site2.outputs.workflows == 'true'