robot: Add version to goreleaser (#1252)

* Add version to goreleaser

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* do not remove github token

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* include version in dist target

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Add missing flag to pass the version

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

---------

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
This commit is contained in:
Mauro Morales
2023-04-05 12:24:19 +02:00
committed by Itxaka
parent 0b5c162f2a
commit 8f50f798e2

View File

@@ -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: