Add gitea actions and earthly
Some checks failed
CI / build (push) Failing after 1m52s

This commit is contained in:
Fabian Stamm
2023-07-13 23:13:04 +02:00
parent db18e03513
commit 384d451410
6 changed files with 61 additions and 29 deletions

23
Earthfile Normal file
View File

@ -0,0 +1,23 @@
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