gluster-dir-csi/Earthfile
Fabian Stamm 384d451410
Some checks failed
CI / build (push) Failing after 1m52s
Add gitea actions and earthly
2023-07-13 23:13:04 +02:00

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