Fix Dockerfile & improve --help

This commit is contained in:
Semantic Versioner 2023-07-22 06:32:21 -04:00
parent c79111996a
commit b1e2de98f4
2 changed files with 4 additions and 6 deletions

View File

@ -24,12 +24,10 @@ RUN mkdir /workspace && \
chown -R semver:semver /workspace
VOLUME /workspace
USER semver:semver
# Setup semver
COPY --from=builder /wheels /semver/wheels
RUN pip install --no-cache /semver/wheels/*
USER semver:semver
WORKDIR /workspace
ENTRYPOINT [ "semver" ]

View File

@ -27,19 +27,19 @@ def main():
"""Main entry point for the application"""
parser = argparse.ArgumentParser(description="Bump Semantic Version.")
parser.add_argument(
"-n", "--no-push", help="Do not try to push", action="store_false", dest="push"
"-n", "--no-push", help="do not try to push", action="store_false", dest="push"
)
parser.add_argument(
"-g",
"--global-user",
help="Set git user at a global level, helps in jenkins",
help="set git user at a global level",
action="store_true",
dest="global_user",
)
parser.add_argument(
"-D",
"--debug",
help="Sets logging level to DEBUG",
help="sets logging level to DEBUG",
action="store_true",
dest="debug",
default=False,