Improvement: Use current directory ( be more self hosted runner friendly )

This commit is contained in:
2024-08-22 22:17:42 +01:00
parent 08fff358b4
commit f00399804b
2 changed files with 2 additions and 4 deletions
+2 -3
View File
@@ -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"]
-1
View File
@@ -46,7 +46,6 @@ 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')