@@ -293,24 +293,19 @@ jobs:
293
293
path : /tmp
294
294
295
295
# Chef doesn't have an easy way to get names of files from unarchived packages
296
- # It's simpler to unarchive and move the built artifacts manually to the
297
- # cookbook files directory
296
+ # It's simpler to manually unarchive and move the built artifacts to the
297
+ # cookbook files directory here. The files/ dir under the Chef deployment is a special
298
+ # directory in Chef, used for copying files from the cookbook to the host running
299
+ # Chef.
298
300
# Cookbook files reference: https://docs.chef.io/files/
299
301
- name : Extract artifacts
300
302
run : |
301
- ls -al /tmp
302
-
303
- ls -al /tmp/deb-amd64-package
304
- ls -al /tmp/rpm-amd64-package
305
-
306
303
mkdir -p files
307
304
deb_path=$(find /tmp/deb-amd64-package/splunk-otel-collector*amd64.deb)
308
305
mv $deb_path ./files/soc.deb
309
306
rpm_path=$(find /tmp/rpm-amd64-package/splunk-otel-collector*x86_64.rpm)
310
307
mv $rpm_path ./files/soc.rpm
311
308
312
- ls -al ./files
313
-
314
309
- name : Install chef
315
310
uses :
actionshub/[email protected]
316
311
with :
@@ -349,19 +344,17 @@ jobs:
349
344
350
345
# Chef doesn't have an easy way to get names of files from unarchived packages
351
346
# It's simpler to unarchive and move the built artifacts manually to the
352
- # cookbook files directory
347
+ # cookbook files directory. The files/ dir under the Chef deployment is a special
348
+ # directory in Chef, used for copying files from the cookbook to the host running
349
+ # Chef.
353
350
# Cookbook files reference: https://docs.chef.io/files/
354
351
- name : Extract artifacts
355
352
run : |
356
- ls /tmp
357
-
358
353
mkdir files
359
354
Get-ChildItem /tmp -Recurse -Include 'splunk-otel-collector*.msi' | Select FullName -OutVariable msiPath
360
355
echo $msiPath.FullName
361
356
mv $msiPath.FullName ./files/splunk-otel-collector.msi
362
357
363
- ls ./files
364
-
365
358
- name : Install chef
366
359
uses :
actionshub/[email protected]
367
360
with :
0 commit comments