24 lines
590 B
Plaintext
24 lines
590 B
Plaintext
|
VERSION 0.7
|
||
|
FROM rust:1.68
|
||
|
WORKDIR /rustbuild
|
||
|
|
||
|
prepare-env:
|
||
|
RUN apt update && apt install -y protobuf-compiler
|
||
|
|
||
|
docker-multi:
|
||
|
BUILD --platform linux/amd64 --platform linux/arm64 +docker
|
||
|
|
||
|
build:
|
||
|
FROM +prepare-env
|
||
|
COPY . .
|
||
|
RUN cargo build --release
|
||
|
SAVE ARTIFACT target/release/gluster-dir-csi gluster-dir-csi
|
||
|
|
||
|
docker:
|
||
|
FROM debian:bullseye-slim
|
||
|
COPY +build/gluster-dir-csi gluster-dir-csi
|
||
|
ENTRYPOINT ["./gluster-dir-csi"]
|
||
|
ARG EARTHLY_TARGET_TAG_DOCKER
|
||
|
ARG TAG=$EARTHLY_TARGET_TAG_DOCKER
|
||
|
SAVE IMAGE --push git.hibas.dev/ops/gluster-dir-csi:$TAG
|