Implement Scraper Dockerfile and Refactor CI Configuration
- Added a new Dockerfile for the scraper application located at cmd/scraper/Dockerfile to streamline the build process. - Updated the CI configuration in .drone.yml to correctly build the scraper application with the new Dockerfile. - Refactored the main application entry point to utilize a new bootstrap package for configuration, logging, and MongoDB initialization. - Enhanced the scraper's configuration management by defining a dedicated Config struct for better organization and maintainability.
This commit is contained in:
+12
-12
@@ -19,7 +19,7 @@ steps:
|
||||
- echo "APP Version tags $APP_VERSION"
|
||||
- echo -n "$APP_VERSION" >> .tags
|
||||
|
||||
- name: buid web
|
||||
- name: build web
|
||||
image: plugins/docker
|
||||
settings:
|
||||
build_args:
|
||||
@@ -31,17 +31,17 @@ steps:
|
||||
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: build scraper
|
||||
image: plugins/docker
|
||||
settings:
|
||||
build_args:
|
||||
- BUILD_APP=scraper
|
||||
username: cicd
|
||||
password:
|
||||
from_secret: REGISTRY_PASSWORD
|
||||
dockerfile: ./cmd/scraper/Dockerfile
|
||||
repo: artifactory.ravanertebat.ir/tm/scraper
|
||||
registry: artifactory.ravanertebat.ir
|
||||
|
||||
node:
|
||||
tag: aecde-docker-runner
|
||||
|
||||
Reference in New Issue
Block a user