Update Drone CI configuration and Makefile to remove legacy worker sources and add build target for worker
- Updated `.drone.yml` to remove lingering legacy worker source files after git deletion, ensuring a clean build environment. - Modified `Makefile` to include a new `build-worker` target that removes deprecated scraper and queue source files, streamlining the worker build process. This change enhances the build process by eliminating outdated components and ensuring that the worker is built without legacy dependencies.
This commit is contained in:
@@ -37,6 +37,8 @@ steps:
|
||||
- go env
|
||||
- CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -o ./artifacts/go/bin/web ./cmd/web/main.go
|
||||
- CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -o ./artifacts/go/bin/scraper ./cmd/scraper/main.go
|
||||
# Remove legacy worker sources if they linger on disk after git deleted them (AI pipeline owns scraping now).
|
||||
- rm -f cmd/worker/workers/scraper.go cmd/worker/workers/scraper_consumer.go cmd/worker/workers/queue_producer.go
|
||||
- CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -o ./artifacts/go/bin/worker ./cmd/worker/main.go
|
||||
- cp -r ./cmd/web/docs ./artifacts/go/bin/docs
|
||||
- cp -r ./cmd/web/assets ./artifacts/go/bin/assets
|
||||
|
||||
Reference in New Issue
Block a user