File tree Expand file tree Collapse file tree 3 files changed +29
-0
lines changed Expand file tree Collapse file tree 3 files changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ [bumpversion]
2+ current_version = 0.2.7
3+ commit = True
4+ tag = True
5+ parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)
6+ serialize =
7+ {major}.{minor}.{patch}
8+
9+ [bumpversion:file:openapi_spec_validator/__init__.py]
10+
11+ [bumpversion:file:Dockerfile]
Original file line number Diff line number Diff line change 1+ FROM python:3.7-alpine
2+
3+ ARG OPENAPI_SPEC_VALIDATOR_VERSION=0.2.7
4+
5+ RUN pip install --no-cache-dir openapi-spec-validator==${OPENAPI_SPEC_VALIDATOR_VERSION}
6+
7+ ENTRYPOINT ["openapi-spec-validator" ]
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ PROJECT_NAME=openapi-spec-validator
44PACKAGE_NAME =$(subst -,_,${PROJECT_NAME})
55VERSION =` git describe --abbrev=0 `
66
7+ DOCKER_REGISTRY =p1c2u
8+
79params :
810 @echo " Project name: ${PROJECT_NAME} "
911 @echo " Package name: ${PACKAGE_NAME} "
@@ -30,3 +32,12 @@ reports-cleanup:
3032test-cleanup : test-cache-cleanup reports-cleanup
3133
3234cleanup : dist-cleanup test-cleanup
35+
36+ docker-build :
37+ @docker build --no-cache --build-arg OPENAPI_SPEC_VALIDATOR_VERSION=${VERSION} -t ${PROJECT_NAME} :${VERSION} .
38+
39+ docker-tag :
40+ @docker tag ${PROJECT_NAME} :${VERSION} ${DOCKER_REGISTRY} /${PROJECT_NAME} :${VERSION}
41+
42+ docker-push :
43+ @docker push ${DOCKER_REGISTRY} /${PROJECT_NAME} :${VERSION}
You can’t perform that action at this time.
0 commit comments