blob: 37d0f91fa3580cab7453e187a6664517b9a4786a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/bash
set -euo pipefail
# Build zsnap for musl target
echo "Building zsnap for x86_64-unknown-linux-musl..."
# Install musl target if not already installed
rustup target add x86_64-unknown-linux-musl
# Build the binary
cargo build --release --target x86_64-unknown-linux-musl --target-dir target/
echo "Build completed successfully!"
echo "Binary location: target/x86_64-unknown-linux-musl/release/zsnap"
# Build and push container image
echo "Building container image..."
podman build -t cr.d464.sh/zsnap:latest .
echo "Pushing container image..."
podman push cr.d464.sh/zsnap:latest
echo "Container image pushed successfully!"
|