Fix Dockerfile & improve --help
This commit is contained in:
parent
c79111996a
commit
b1e2de98f4
@ -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" ]
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user