1
0
Fork 0
mirror of https://github.com/imjasonh/krust synced 2026-07-08 14:55:35 +00:00

chore: Add alpine-base example for multi-platform testing

- Add example/alpine-base project that uses Alpine Linux as base image
- Update CI extended-platforms job to use the example directory
- Simplifies CI configuration by moving test project to examples

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Jason Hall 2025-06-08 00:37:17 -04:00
parent 725b43f0e2
commit 532198dd5a
Failed to extract signature
3 changed files with 11 additions and 18 deletions

View file

@ -200,25 +200,8 @@ jobs:
run: cargo build --release
- name: Test multi-platform build with Alpine base
run: |
# Create a test project that uses Alpine (which supports many platforms)
mkdir -p test-alpine-platforms/src
cat > test-alpine-platforms/Cargo.toml << 'EOF'
[package]
name = "test-alpine"
version = "0.1.0"
edition = "2021"
[package.metadata.krust]
base-image = "alpine:latest"
EOF
cat > test-alpine-platforms/src/main.rs << 'EOF'
fn main() {
println!("Hello from Alpine multi-platform test!");
}
EOF
# Test that platform detection works (even if we can't build all platforms)
cd test-alpine-platforms
cd alpine-base
../target/release/krust build --no-push --image test.local/alpine-test:latest . 2>&1 | tee build.log
# Verify platform detection happened