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
|
chown -R semver:semver /workspace
|
||||||
VOLUME /workspace
|
VOLUME /workspace
|
||||||
|
|
||||||
USER semver:semver
|
|
||||||
|
|
||||||
# Setup semver
|
# Setup semver
|
||||||
COPY --from=builder /wheels /semver/wheels
|
COPY --from=builder /wheels /semver/wheels
|
||||||
|
|
||||||
RUN pip install --no-cache /semver/wheels/*
|
RUN pip install --no-cache /semver/wheels/*
|
||||||
|
|
||||||
|
USER semver:semver
|
||||||
WORKDIR /workspace
|
WORKDIR /workspace
|
||||||
ENTRYPOINT [ "semver" ]
|
ENTRYPOINT [ "semver" ]
|
||||||
|
@ -27,19 +27,19 @@ def main():
|
|||||||
"""Main entry point for the application"""
|
"""Main entry point for the application"""
|
||||||
parser = argparse.ArgumentParser(description="Bump Semantic Version.")
|
parser = argparse.ArgumentParser(description="Bump Semantic Version.")
|
||||||
parser.add_argument(
|
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(
|
parser.add_argument(
|
||||||
"-g",
|
"-g",
|
||||||
"--global-user",
|
"--global-user",
|
||||||
help="Set git user at a global level, helps in jenkins",
|
help="set git user at a global level",
|
||||||
action="store_true",
|
action="store_true",
|
||||||
dest="global_user",
|
dest="global_user",
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"-D",
|
"-D",
|
||||||
"--debug",
|
"--debug",
|
||||||
help="Sets logging level to DEBUG",
|
help="sets logging level to DEBUG",
|
||||||
action="store_true",
|
action="store_true",
|
||||||
dest="debug",
|
dest="debug",
|
||||||
default=False,
|
default=False,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user