Compare commits
No commits in common. "f16457bef5adb5467dcbefec689e5860630b9343" and "d28d9de2726ad0e068853b23372a17a3dbd63ffb" have entirely different histories.
f16457bef5
...
d28d9de272
|
|
@ -4,6 +4,7 @@ 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
|
||||||
|
|
@ -13,12 +14,12 @@ stages:
|
||||||
- build
|
- build
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
build-staging:dep:
|
deploy-staging:dep:
|
||||||
stage: build
|
stage: build
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
tags:
|
tags:
|
||||||
- master
|
- $TAG
|
||||||
script:
|
script:
|
||||||
- echo "===== start build =========="
|
- echo "===== start build =========="
|
||||||
- docker build -t ${IMAGE_NAME} .
|
- docker build -t ${IMAGE_NAME} .
|
||||||
|
|
@ -28,12 +29,13 @@ build-staging:dep:
|
||||||
|
|
||||||
deploy-staging:dep:
|
deploy-staging:dep:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
tags:
|
only:
|
||||||
- master
|
- master
|
||||||
|
tags:
|
||||||
|
- $TAG
|
||||||
script:
|
script:
|
||||||
- echo "===== start deploy =========="
|
- echo "===== start deploy =========="
|
||||||
- echo $CI_COMMIT_BRANCH
|
- if [ "$(kubectl get deployment -n $K8S_NS | grep $DEPLOYMENT_NAME | awk '{print $1}')" ]; then
|
||||||
- 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,12 +7,13 @@ 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