-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace earthly with dockerfile (#28)
- Loading branch information
Showing
4 changed files
with
32 additions
and
48 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# SPDX-FileCopyrightText: 2023 Risk.Ident GmbH <[email protected]> | ||
# | ||
# SPDX-License-Identifier: CC0-1.0 | ||
|
||
FROM golang:1.21.5-alpine AS build | ||
WORKDIR /jelease | ||
COPY go.mod go.sum ./ | ||
RUN go mod download | ||
|
||
ARG VERSION=latest | ||
COPY . . | ||
RUN go test -v ./... \ | ||
&& go build \ | ||
-ldflags "-X github.com/RiskIdent/jelease/cmd.appVersion=$VERSION" \ | ||
-o build/jelease main.go | ||
|
||
FROM alpine | ||
RUN apk add --no-cache ca-certificates git | ||
COPY --from=build /jelease/build/jelease /usr/local/bin/ | ||
CMD ["jelease", "serve"] | ||
USER 10000 | ||
LABEL org.opencontainers.image.source=https://github.com/RiskIdent/jelease | ||
LABEL org.opencontainers.image.description="Automatically create software update PRs and Jira tickets using newreleases.io webhooks." | ||
LABEL org.opencontainers.image.licenses=GPL-3.0-or-later |
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