From 0d7a562e009c20faf803375ab791b5cddb7adb48 Mon Sep 17 00:00:00 2001 From: Lukasz Raczylo Date: Tue, 11 May 2021 13:58:06 +0100 Subject: [PATCH] Update entrypoint location. --- Dockerfile | 4 ++-- entrypoint.sh | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) 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