-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: write the github output in golang and support actions input…
… variables
- Loading branch information
1 parent
a4b8e01
commit 69f4af2
Showing
7 changed files
with
22 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
.gitignore | ||
*md | ||
*yml | ||
semver | ||
semver-generator |
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
FROM golang:1.22.3-alpine as builder | ||
|
||
COPY . /go/src/github.com/dokku/semver | ||
WORKDIR /go/src/github.com/dokku/semver | ||
COPY . /go/src/github.com/dokku/semver-generator | ||
WORKDIR /go/src/github.com/dokku/semver-generator | ||
RUN go build | ||
|
||
FROM alpine:3.19.1 | ||
# hadolint ignore=DL3018 | ||
RUN apk add --no-cache bash | ||
COPY --from=builder /go/src/github.com/dokku/semver/semver /usr/local/bin/semver | ||
ENTRYPOINT ["/usr/local/bin/semver"] | ||
COPY --from=builder /go/src/github.com/dokku/semver-generator/semver-generator /usr/local/bin/semver-generator | ||
COPY github-entrypoint /usr/local/bin/github-entrypoint | ||
ENTRYPOINT ["/usr/local/bin/semver-generator"] | ||
LABEL org.opencontainers.image.description "A tool for generating a semver version from an existing version and a desired bump level" |
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
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,3 @@ | ||
#!/usr/bin/env sh | ||
|
||
/usr/local/bin/semver-generator --bump "$INPUT_BUMP" --input "$INPUT_VERSION" |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module github.com/dokku/semver | ||
module github.com/dokku/semver-generator | ||
|
||
go 1.22.3 | ||
|
||
|
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