Refactor Dockerfile and CI Configuration
- Updated the CI configuration in .drone.yml to use the new Dockerfile located at ./cmd/web/Dockerfile. - Removed the old Dockerfile and Dockerfile-drone as they are no longer needed. - Refactored the cmd/web/Dockerfile to streamline the build process and improve organization. - Introduced a new bootstrap package to handle application initialization, including configuration, logging, MongoDB, Redis, and authorization service setup. - Added a health check endpoint for monitoring the server status, enhancing the API's operational capabilities.
This commit is contained in:
+12
-12
@@ -27,21 +27,21 @@ steps:
|
||||
username: cicd
|
||||
password:
|
||||
from_secret: REGISTRY_PASSWORD
|
||||
dockerfile: Dockerfile-drone
|
||||
dockerfile: ./cmd/web/Dockerfile
|
||||
repo: artifactory.ravanertebat.ir/tm/web
|
||||
registry: artifactory.ravanertebat.ir
|
||||
|
||||
- name: buid scraper
|
||||
image: plugins/docker
|
||||
settings:
|
||||
build_args:
|
||||
- BUILD_APP=scraper
|
||||
username: cicd
|
||||
password:
|
||||
from_secret: REGISTRY_PASSWORD
|
||||
dockerfile: Dockerfile-drone
|
||||
repo: artifactory.ravanertebat.ir/tm/scraper
|
||||
registry: artifactory.ravanertebat.ir
|
||||
# - name: buid scraper
|
||||
# image: plugins/docker
|
||||
# settings:
|
||||
# build_args:
|
||||
# - BUILD_APP=scraper
|
||||
# username: cicd
|
||||
# password:
|
||||
# from_secret: REGISTRY_PASSWORD
|
||||
# dockerfile: Dockerfile-drone
|
||||
# repo: artifactory.ravanertebat.ir/tm/scraper
|
||||
# registry: artifactory.ravanertebat.ir
|
||||
|
||||
node:
|
||||
tag: aecde-docker-runner
|
||||
|
||||
Reference in New Issue
Block a user