gluster-dir-csi/Earthfile

24 lines
590 B
Plaintext
Raw Permalink Normal View History

2023-07-13 21:13:04 +00:00
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