-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update Dockerfile and workflow labels and build-args
- Loading branch information
Showing
2 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,12 +9,12 @@ COPY go.sum . | |
RUN go mod download | ||
RUN go mod verify | ||
|
||
ARG version="DEV" | ||
ARG date="" | ||
ARG VERSION="DEV" | ||
ARG BUILDTIME="" | ||
|
||
COPY . . | ||
|
||
ENV GO_LDFLAGS="-w -s -X github.com/mia-platform/mlp/internal/cli.BuildDate=${date} -X github.com/mia-platform/mlp/internal/cli.Version=${version}" | ||
ENV GO_LDFLAGS="-w -s -X github.com/mia-platform/mlp/internal/cli.BuildDate=${BUILDTIME} -X github.com/mia-platform/mlp/internal/cli.Version=${VERSION}" | ||
RUN GOOS=linux \ | ||
CGO_ENABLED=0 \ | ||
GOARCH=amd64 \ | ||
|
@@ -26,13 +26,6 @@ RUN GOOS=linux \ | |
|
||
FROM alpine:3.15 | ||
|
||
ARG version="DEV" | ||
|
||
LABEL maintainer="C.E.C.O.M <[email protected]>" \ | ||
name="mlp: cli for easier deployment of Mia-Platform Console projects" \ | ||
eu.mia-platform.url="https://www.mia-platform.eu" \ | ||
eu.mia-platform.version="${version}" | ||
|
||
COPY --from=builder /build/mlp /usr/local/bin/ | ||
|
||
CMD ["mlp"] |