Compare commits
34 Commits
feature/re
...
c79111996a
Author | SHA1 | Date | |
---|---|---|---|
c79111996a | |||
94a54ac964 | |||
eedb2c83ec | |||
4906d867d0 | |||
930d1b14b1 | |||
02fe81d919 | |||
849874cec6 | |||
da1e716dde | |||
d2a3d5de6f | |||
f5204b496f | |||
3eb8b3da81 | |||
405ce258f2 | |||
1138c97865 | |||
8b214aab3d | |||
6a2b5da00b | |||
5c9bcfdac2 | |||
05b2278154 | |||
8976f24186 | |||
2de8d7d597 | |||
29daef3b46 | |||
98fb6dada1 | |||
81f0cf33aa | |||
4d25ef7719 | |||
eecdc5661d | |||
f36e7be2d8 | |||
a273f83873 | |||
0ae43a314a | |||
df27ad2041 | |||
06671174b2 | |||
036b720f2e | |||
b6bfc2409c | |||
28eaf580b4 | |||
fa41212e77 | |||
d1e2d77a29 |
@ -24,10 +24,12 @@ 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",
|
help="Set git user at a global level, helps in jenkins",
|
||||||
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()
|
||||||
|
Reference in New Issue
Block a user