From 8f50f798e2415ae15061da31424698a7a0a794a9 Mon Sep 17 00:00:00 2001 From: Mauro Morales Date: Wed, 5 Apr 2023 12:24:19 +0200 Subject: [PATCH] robot: Add version to goreleaser (#1252) * Add version to goreleaser Signed-off-by: Mauro Morales * do not remove github token Signed-off-by: Mauro Morales * include version in dist target Signed-off-by: Mauro Morales * Add missing flag to pass the version Signed-off-by: Mauro Morales --------- Signed-off-by: Mauro Morales --- Earthfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Earthfile b/Earthfile index 1fdc98e..45b7038 100644 --- a/Earthfile +++ b/Earthfile @@ -143,7 +143,9 @@ dist: RUN luet install -y utils/goreleaser WORKDIR /build COPY . . - RUN goreleaser build --rm-dist --skip-validate --snapshot + COPY +version/VERSION ./ + RUN echo $(cat VERSION) + RUN VERSION=$(cat VERSION) goreleaser build --rm-dist --skip-validate --snapshot SAVE ARTIFACT /build/dist/* AS LOCAL dist/ golint: