Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions test/bom.bats
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ bom-child:
type: built
tag: bom-parent
bom:
generate: ${{GENERATE}}
generate: true
packages:
- name: pkg3
version: 1.0.0
Expand All @@ -129,7 +129,7 @@ bom-child:
org.opencontainers.image.vendor: bom-test
org.opencontainers.image.licenses: MIT
EOF
stacker build --substitute GENERATE=true
stacker build
[ -f .stacker/artifacts/bom-parent/installed-packages.json ]
# a full inventory for this image
[ -f .stacker/artifacts/bom-parent/inventory.json ]
Expand Down Expand Up @@ -163,7 +163,7 @@ bom-alpine:
type: docker
url: docker://ghcr.io/project-stacker/alpine:edge
bom:
generate: ${{GENERATE}}
generate: true
packages:
- name: pkg1
version: 1.0.0
Expand All @@ -175,15 +175,15 @@ bom-alpine:
org.opencontainers.image.licenses: MIT
run: |
# discover installed pkgs
[ ${{GENERATE}} = true ] && /stacker/tools/static-stacker bom discover
/stacker/tools/static-stacker bom discover
# run our cmds
ls -al /
# some changes
touch /file1
# cleanup
rm -f /etc/alpine-release /etc/apk/arch /etc/apk/repositories /etc/apk/world /etc/issue /etc/os-release /etc/secfixes.d/alpine /lib/apk/db/installed /lib/apk/db/lock /lib/apk/db/scripts.tar /lib/apk/db/triggers
EOF
stacker build --substitute GENERATE=true
stacker build
[ -f .stacker/artifacts/bom-alpine/installed-packages.json ]
# a full inventory for this image
[ -f .stacker/artifacts/bom-alpine/inventory.json ]
Expand Down