CI: Add git info into admin binary

This commit is contained in:
nemunaire 2023-05-05 15:54:29 +02:00
parent 2ca3d1471f
commit 6407970dfa

View File

@ -10,9 +10,9 @@ COPY libfic ./libfic/
COPY admin ./admin/ COPY admin ./admin/
COPY repochecker ./repochecker/ COPY repochecker ./repochecker/
RUN apk add --no-cache build-base && \ RUN apk add --no-cache build-base git && \
go get -d -v ./admin && \ go get -d -v ./admin && \
go build -v -buildvcs=false -o admin/admin ./admin && \ go build -v -o admin/admin ./admin && \
go build -v -buildmode=plugin -o repochecker/epita-rules.so ./repochecker/epita && \ go build -v -buildmode=plugin -o repochecker/epita-rules.so ./repochecker/epita && \
go build -v -buildmode=plugin -o repochecker/file-inspector.so ./repochecker/file-inspector && \ go build -v -buildmode=plugin -o repochecker/file-inspector.so ./repochecker/file-inspector && \
go build -v -buildmode=plugin -o repochecker/grammalecte-rules.so ./repochecker/grammalecte && \ go build -v -buildmode=plugin -o repochecker/grammalecte-rules.so ./repochecker/grammalecte && \