Compare commits
10 Commits
d28d9de272
...
f16457bef5
| Author | SHA1 | Date |
|---|---|---|
|
|
f16457bef5 | |
|
|
dd8712cd49 | |
|
|
efefff5bfd | |
|
|
6b2dce4811 | |
|
|
4cf73561ea | |
|
|
8bde10f424 | |
|
|
287cdbf3ad | |
|
|
9314afa0fa | |
|
|
6559008288 | |
|
|
9a55c82e1b |
|
|
@ -4,7 +4,6 @@ variables:
|
||||||
LATEST_VERSION: latest
|
LATEST_VERSION: latest
|
||||||
K8S_NS: default
|
K8S_NS: default
|
||||||
DEPLOYMENT_NAME: fastapi-app-template
|
DEPLOYMENT_NAME: fastapi-app-template
|
||||||
TAG: master
|
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- PATH=.:$PATH
|
- PATH=.:$PATH
|
||||||
|
|
@ -14,12 +13,12 @@ stages:
|
||||||
- build
|
- build
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
deploy-staging:dep:
|
build-staging:dep:
|
||||||
stage: build
|
stage: build
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
tags:
|
tags:
|
||||||
- $TAG
|
- master
|
||||||
script:
|
script:
|
||||||
- echo "===== start build =========="
|
- echo "===== start build =========="
|
||||||
- docker build -t ${IMAGE_NAME} .
|
- docker build -t ${IMAGE_NAME} .
|
||||||
|
|
@ -29,13 +28,12 @@ deploy-staging:dep:
|
||||||
|
|
||||||
deploy-staging:dep:
|
deploy-staging:dep:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
only:
|
|
||||||
- master
|
|
||||||
tags:
|
tags:
|
||||||
- $TAG
|
- master
|
||||||
script:
|
script:
|
||||||
- echo "===== start deploy =========="
|
- echo "===== start deploy =========="
|
||||||
- if [ "$(kubectl get deployment -n $K8S_NS | grep $DEPLOYMENT_NAME | awk '{print $1}')" ]; then
|
- echo $CI_COMMIT_BRANCH
|
||||||
|
- if [[ $CI_COMMIT_BRANCH == 'master' ]] && [[ "$(kubectl get deployment -n $K8S_NS | grep $DEPLOYMENT_NAME | awk '{print $1}')" ]]; then
|
||||||
- kubectl rollout restart deployment $DEPLOYMENT_NAME -n $K8S_NS
|
- kubectl rollout restart deployment $DEPLOYMENT_NAME -n $K8S_NS
|
||||||
- fi
|
- fi
|
||||||
- echo "===== end deploy !!!!!======="
|
- echo "===== end deploy !!!!!======="
|
||||||
|
|
|
||||||
|
|
@ -7,13 +7,12 @@ fastapi==0.89.1
|
||||||
fastapi-plugins==0.11.0
|
fastapi-plugins==0.11.0
|
||||||
FastAPI-SQLAlchemy==0.2.1
|
FastAPI-SQLAlchemy==0.2.1
|
||||||
pydantic==1.10.4
|
pydantic==1.10.4
|
||||||
pydantic-sqlalchemy==0.0.9
|
# pydantic-sqlalchemy==0.0.9
|
||||||
python-multipart==0.0.5
|
python-multipart==0.0.5
|
||||||
pytest==7.2.1
|
pytest==7.2.1
|
||||||
requests==2.28.2
|
requests==2.28.2
|
||||||
sqlacodegen==2.3.0
|
sqlacodegen==2.3.0
|
||||||
SQLAlchemy==2.0.1
|
SQLAlchemy==2.0.1
|
||||||
starlette==0.23.1
|
|
||||||
uvicorn==0.20.0
|
uvicorn==0.20.0
|
||||||
PyJWT==2.6.0
|
PyJWT==2.6.0
|
||||||
passlib==1.7.4
|
passlib==1.7.4
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue