File tree Expand file tree Collapse file tree 1 file changed +19
-16
lines changed Expand file tree Collapse file tree 1 file changed +19
-16
lines changed Original file line number Diff line number Diff line change 5
5
branches :
6
6
- main
7
7
paths :
8
- - ' **'
9
- - ' !dev/**'
10
- - ' dev/setup-env.sh'
11
- - ' !docs/**'
12
- - ' !README.md'
13
- - ' !.gitignore'
14
- - ' !.github/workflows/'
8
+ - ' environments/.stackhpc/terraform/cluster_image.auto.tfvars.json'
9
+ - ' ansible/roles/doca/**'
15
10
- ' .github/workflows/doca'
16
11
pull_request :
17
12
paths :
18
- - ' **'
19
- - ' !dev/**'
20
- - ' dev/setup-env.sh'
21
- - ' !docs/**'
22
- - ' !README.md'
23
- - ' !.gitignore'
24
- - ' !.github/workflows/'
13
+ - ' environments/.stackhpc/terraform/cluster_image.auto.tfvars.json'
14
+ - ' ansible/roles/doca/**'
25
15
- ' .github/workflows/doca'
26
16
27
17
jobs :
28
- openstack :
29
- name : openstack-docabuild
18
+ doca :
19
+ name : doca-build
30
20
concurrency :
31
21
group : ${{ github.workflow }}-${{ github.ref }}-${{ matrix.build.image_name }} # to branch/PR + OS
32
22
cancel-in-progress : true
@@ -116,9 +106,22 @@ jobs:
116
106
sleep 5
117
107
done
118
108
IMAGE_NAME=$(openstack image show -f value -c name $IMAGE_ID)
109
+ echo "image-name=${IMAGE_NAME}" >> "$GITHUB_OUTPUT"
110
+ echo "image-id=$IMAGE_ID" >> "$GITHUB_OUTPUT"
119
111
echo $IMAGE_ID > image-id.txt
120
112
echo $IMAGE_NAME > image-name.txt
121
113
114
+ - name : Make image usable for further builds
115
+ run : |
116
+ . venv/bin/activate
117
+ openstack image unset --property signature_verified "${{ steps.manifest.outputs.image-id }}"
118
+
119
+ - name : Delete image for automatically-run workflows
120
+ run : |
121
+ . venv/bin/activate
122
+ openstack image delete "${{ steps.manifest.outputs.image-id }}"
123
+ if : ${{ github.event_name != 'workflow_dispatch' }}
124
+
122
125
- name : Upload manifest artifact
123
126
uses : actions/upload-artifact@v4
124
127
with :
You can’t perform that action at this time.
0 commit comments