Skip to content

Commit 295a207

Browse files
committed
ci: add workflow_dispatch for UBI build verification
1 parent 7cde7e8 commit 295a207

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Verify UBI Build
2+
on:
3+
workflow_dispatch:
4+
5+
permissions:
6+
contents: read
7+
8+
jobs:
9+
build-collector:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
13+
14+
- name: Build collector image with UBI Containerfile
15+
run: |
16+
echo "=== Building collector with UBI10 Containerfile ==="
17+
podman build -f beacon-distro/Containerfile.collector \
18+
-t complybeacon/collector:verify \
19+
beacon-distro/ 2>&1
20+
21+
- name: Verify image
22+
run: |
23+
echo "=== Image details ==="
24+
podman inspect complybeacon/collector:verify --format '{{.Os}}/{{.Architecture}}'
25+
echo "=== Check CA bundle exists ==="
26+
podman run --rm complybeacon/collector:verify \
27+
ls -la /etc/pki/tls/certs/ca-bundle.crt
28+
echo "=== Collector version ==="
29+
podman run --rm complybeacon/collector:verify --version

0 commit comments

Comments
 (0)