From 92a8cc8f2cc2b1e729d34078dcc9ba6d9174f1c4 Mon Sep 17 00:00:00 2001 From: "k.pirzargar" Date: Sun, 31 Aug 2025 00:09:33 +0330 Subject: [PATCH] Add .drone.yml --- .drone.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..ca53d6e --- /dev/null +++ b/.drone.yml @@ -0,0 +1,40 @@ +################################################################################ +# Landing +################################################################################ +kind: pipeline +type: docker +name: (admin Panel) build form and push to artifactory + +steps: + - name: 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: buid panle + image: plugins/docker + settings: + # build_args: + # - BUILD_APP=scraper + username: cicd + password: + from_secret: REGISTRY_PASSWORD + # dockerfile: Dockerfile-drone + repo: artifactory.ravanertebat.ir/tm/landing + registry: artifactory.ravanertebat.ir + +node: + tag: aecde-docker-runner +trigger: + branch: + - main + event: + - custom \ No newline at end of file