mirror of
https://github.com/lukaszraczylo/semver-generator.git
synced 2026-06-17 01:31:51 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f00399804b | |||
| 08fff358b4 |
+2
-3
@@ -4,8 +4,7 @@ COPY . /go/src/app/
|
||||
RUN CGO_ENABLED=1 make build
|
||||
|
||||
FROM ubuntu:jammy
|
||||
WORKDIR /go/src/app
|
||||
COPY --from=baseimg /go/src/app/semver-gen .
|
||||
COPY --from=baseimg /go/src/app/config-release.yaml config.yaml
|
||||
COPY --from=baseimg /go/src/app/semver-gen /go/src/app/semver-gen
|
||||
COPY --from=baseimg /go/src/app/config-release.yaml /go/src/app/config.yaml
|
||||
COPY --from=baseimg /go/src/app/entrypoint.sh /entrypoint.sh
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
+2
-3
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
FLAGS=""
|
||||
FLAGS="$SEMVER_RAW_FLAGS"
|
||||
|
||||
if [[ -z "$INPUT_CONFIG_FILE" ]]; then
|
||||
echo "Set the configuration file path."
|
||||
@@ -46,9 +46,8 @@ if [[ ! -z "$INPUT_GITHUB_USERNAME" ]]; then
|
||||
export GITHUB_USERNAME=$INPUT_GITHUB_USERNAME
|
||||
fi
|
||||
|
||||
cd /github/workspace
|
||||
OUT_SEMVER_GEN=$(/go/src/app/semver-gen generate $FLAGS $*)
|
||||
[ $? -eq 0 ] || exit 1
|
||||
CLEAN_SEMVER=$(echo $OUT_SEMVER_GEN | sed -e 's|SEMVER ||g')
|
||||
echo "semantic_version=$CLEAN_SEMVER" >> $GITHUB_OUTPUT
|
||||
echo $OUT_SEMVER_GEN
|
||||
echo $OUT_SEMVER_GEN
|
||||
|
||||
Reference in New Issue
Block a user