Pierre Hubert
b25b7aa2a5
All checks were successful
continuous-integration/drone/push Build is passing
15 lines
304 B
Bash
Executable File
15 lines
304 B
Bash
Executable File
#!/bin/bash
|
|
cargo build --release
|
|
|
|
TEMP_DIR=$(mktemp -d)
|
|
cp target/release/minio-operator "$TEMP_DIR"
|
|
|
|
# Download mc
|
|
wget -O "$TEMP_DIR/mc" https://dl.min.io/client/mc/release/linux-amd64/mc
|
|
chmod +x "$TEMP_DIR/mc"
|
|
|
|
docker build -f Dockerfile "$TEMP_DIR" -t pierre42100/minio_operator
|
|
|
|
rm -r $TEMP_DIR
|
|
|