diff --git a/Dockerfile b/Dockerfile index ceead09..a3ad168 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,5 +13,5 @@ RUN apk add --no-cache ca-certificates 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/entrypoint.sh entrypoint.sh -ENTRYPOINT ["./entrypoint.sh"] \ No newline at end of file +COPY --from=baseimg /go/src/app/entrypoint.sh /entrypoint.sh +ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file diff --git a/entrypoint.sh b/entrypoint.sh index 078933b..0830340 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -26,6 +26,8 @@ if [[ "${FLAGS}" == "" && "$*" == "" ]]; then exit 1 fi +cd /github/workspace OUT_SEMVER_GEN=$(/go/src/app/semver-gen generate $FLAGS $*) +[ $? -eq 0 ] || exit 1 echo "::set-output name=semantic_version::$(echo $OUT_SEMVER_GEN | sed -e 's|SEMVER ||g')" echo $OUT_SEMVER_GEN \ No newline at end of file