From ff44ded5f949a890cdfd54f342d31379bc5a2a0d Mon Sep 17 00:00:00 2001 From: "n.nakhostin" Date: Sun, 31 Aug 2025 14:25:43 +0330 Subject: [PATCH] Update CI Configuration in .drone.yml to Enhance Build Process - Renamed the existing 'tag' step to 'web tag' for clarity in the CI pipeline. - Added a new 'scraper tag' step to generate application version tags based on the current git commit count and branch, improving versioning for the scraper application. - This update streamlines the CI process and enhances the tagging mechanism for better tracking of application versions. --- .drone.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index ef7dd77..4705d47 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,7 +6,7 @@ type: docker name: (web dev) build form and push to artifactory steps: - - name: tag + - name: web tag image: alpine/git:2.40.1 environment: GOOS: linux @@ -31,6 +31,19 @@ steps: repo: artifactory.ravanertebat.ir/tm/web registry: artifactory.ravanertebat.ir + - name: scraper tag + image: alpine/git:2.40.1 + environment: + GOOS: linux + GOARCH: amd64 + CGO_ENABLED: 0 + settings: + debug: true + commands: + - APP_VERSION=$(git rev-list HEAD --count --no-merges)-$DRONE_BRANCH + - echo "APP Version tags $APP_VERSION" + - echo -n "$APP_VERSION" >> .tags + - name: build scraper image: plugins/docker settings: