Compare commits
2 Commits
c79111996a
...
26e31e1c7c
Author | SHA1 | Date | |
---|---|---|---|
|
26e31e1c7c | ||
|
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,
|
||||||
|
@ -11,14 +11,14 @@ def main():
|
|||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"-d",
|
"-d",
|
||||||
"--dot",
|
"--dot",
|
||||||
help="Switch out / for . to be used in docker tag",
|
help="switch out / for . to be used in docker tag",
|
||||||
action="store_true",
|
action="store_true",
|
||||||
dest="dot",
|
dest="dot",
|
||||||
)
|
)
|
||||||
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,
|
||||||
@ -26,12 +26,12 @@ def main():
|
|||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"-f",
|
"-f",
|
||||||
"--format",
|
"--format",
|
||||||
help="Format for pre-release version syntax",
|
help="format for pre-release version syntax",
|
||||||
choices=["npm", "maven", "docker"],
|
choices=["npm", "maven", "docker"],
|
||||||
default=None,
|
default=None,
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"-b", "--build-number", help="Build number, used in pre-releases", default=0
|
"-b", "--build-number", help="build number, used in pre-releases", default=0
|
||||||
)
|
)
|
||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user