Skip to content

Commit 2dec504

Browse files
authored
ci: smoke-test the pushed docker image (#936)
1 parent e91db32 commit 2dec504

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎.github/workflows/docker.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,18 @@ jobs:
100100
run: mv .github/image/bin/oura-Linux-x86_64 .github/image/bin/oura-Linux-amd64
101101

102102
- name: Build and push
103+
id: build
103104
uses: docker/build-push-action@v6
104105
with:
105106
context: .github/image
106107
platforms: linux/arm64,linux/amd64
107108
push: true
108109
tags: ${{ steps.meta.outputs.tags }}
109110
labels: ${{ steps.meta.outputs.labels }}
111+
112+
# Basic smoke test: run the image we just pushed and make sure the binary
113+
# actually executes. Pulling by digest selects the amd64 variant on this
114+
# runner, which catches runtime breakage like a glibc mismatch against the
115+
# debian:12-slim base.
116+
- name: Smoke test
117+
run: docker run --rm ghcr.io/txpipe/oura@${{ steps.build.outputs.digest }} --version

0 commit comments

Comments
 (0)