Skip to content

Commit ba60b0c

Browse files
committed
Ignore irrelevant paths in workflow trigger
1 parent 415cc59 commit ba60b0c

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

.github/workflows/stackhpc.yml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,17 @@ on:
55
push:
66
branches:
77
- main
8+
paths-ignore:
9+
- dev/**
10+
- docs/**
11+
- README.md
12+
- .gitignore
813
pull_request:
14+
paths-ignore:
15+
- dev/**
16+
- docs/**
17+
- README.md
18+
- .gitignore
919
jobs:
1020
openstack:
1121
name: openstack-ci
@@ -39,23 +49,23 @@ jobs:
3949
echo "${{ secrets[format('{0}_SSH_KEY', vars.CI_CLOUD)] }}" > ~/.ssh/id_rsa
4050
chmod 0600 ~/.ssh/id_rsa
4151
shell: bash
42-
52+
4353
- name: Add bastion's ssh key to known_hosts
4454
run: cat environments/.stackhpc/bastion_fingerprints >> ~/.ssh/known_hosts
4555
shell: bash
46-
56+
4757
- name: Install ansible etc
4858
run: dev/setup-env.sh
4959

5060
- name: Install OpenTofu
5161
uses: opentofu/setup-opentofu@v1
5262
with:
5363
tofu_version: 1.6.2
54-
64+
5565
- name: Initialise terraform
5666
run: terraform init
5767
working-directory: ${{ github.workspace }}/environments/.stackhpc/terraform
58-
68+
5969
- name: Write clouds.yaml
6070
run: |
6171
mkdir -p ~/.config/openstack/
@@ -111,14 +121,14 @@ jobs:
111121
run: |
112122
. venv/bin/activate
113123
. environments/.stackhpc/activate
114-
124+
115125
# load ansible variables into shell:
116126
ansible-playbook ansible/ci/output_vars.yml \
117127
-e output_vars_hosts=openondemand \
118128
-e output_vars_path=$APPLIANCES_ENVIRONMENT_ROOT/vars.txt \
119129
-e output_vars_items=bastion_ip,bastion_user,openondemand_servername
120130
source $APPLIANCES_ENVIRONMENT_ROOT/vars.txt
121-
131+
122132
# setup ssh proxying:
123133
sudo apt-get --yes install proxychains
124134
echo proxychains installed
@@ -155,7 +165,7 @@ jobs:
155165
# ansible login -v -a "sudo scontrol reboot ASAP nextstate=RESUME reason='rebuild image:${{ steps.packer_build.outputs.NEW_COMPUTE_IMAGE_ID }}' ${TF_VAR_cluster_name}-compute-[0-3]"
156166
# ansible compute -m wait_for_connection -a 'delay=60 timeout=600' # delay allows node to go down
157167
# ansible-playbook -v ansible/ci/check_slurm.yml
158-
168+
159169
- name: Test reimage of login and control nodes (via rebuild adhoc)
160170
run: |
161171
. venv/bin/activate
@@ -164,7 +174,7 @@ jobs:
164174
ansible all -m wait_for_connection -a 'delay=60 timeout=600' # delay allows node to go down
165175
ansible-playbook -v ansible/site.yml
166176
ansible-playbook -v ansible/ci/check_slurm.yml
167-
177+
168178
- name: Check sacct state survived reimage
169179
run: |
170180
. venv/bin/activate

0 commit comments

Comments
 (0)