Update CI Configuration in .drone.yml to Reflect Build Process Changes
- Renamed the pipeline from 'web' to 'build' for clarity in the CI process. - Updated the 'web tag' step to 'build tag' to better represent its purpose. - Removed the 'scraper tag' step to streamline the configuration and focus on the build process. - Ensured the CI configuration aligns with the current build requirements for the application.
This commit is contained in:
+3
-62
@@ -1,12 +1,12 @@
|
|||||||
################################################################################
|
################################################################################
|
||||||
# web
|
# build
|
||||||
################################################################################
|
################################################################################
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: (web dev) build form and push to artifactory
|
name: (build dev) build form and push to artifactory
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: web tag
|
- name: build tag
|
||||||
image: alpine/git:2.40.1
|
image: alpine/git:2.40.1
|
||||||
environment:
|
environment:
|
||||||
GOOS: linux
|
GOOS: linux
|
||||||
@@ -30,19 +30,6 @@ steps:
|
|||||||
repo: artifactory.ravanertebat.ir/tm/web
|
repo: artifactory.ravanertebat.ir/tm/web
|
||||||
registry: artifactory.ravanertebat.ir
|
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
|
- name: build scraper
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
@@ -62,49 +49,3 @@ trigger:
|
|||||||
- develop
|
- develop
|
||||||
event:
|
event:
|
||||||
- custom
|
- custom
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# kind: pipeline
|
|
||||||
# type: docker
|
|
||||||
# name: go-pipeline
|
|
||||||
|
|
||||||
# steps:
|
|
||||||
# - name: install-deps
|
|
||||||
# image: golang:1.21
|
|
||||||
# volumes:
|
|
||||||
# - name: gocache
|
|
||||||
# path: /go/pkg/mod
|
|
||||||
# - name: gobuild
|
|
||||||
# path: /root/.cache/go-build
|
|
||||||
# commands:
|
|
||||||
# - go mod download
|
|
||||||
|
|
||||||
# - name: build-web
|
|
||||||
# image: golang:1.21
|
|
||||||
# volumes:
|
|
||||||
# - name: gocache
|
|
||||||
# path: /go/pkg/mod
|
|
||||||
# - name: gobuild
|
|
||||||
# path: /root/.cache/go-build
|
|
||||||
# commands:
|
|
||||||
# - go build -o build/web ./cmd/web
|
|
||||||
|
|
||||||
# - name: build-scraper
|
|
||||||
# image: golang:1.21
|
|
||||||
# volumes:
|
|
||||||
# - name: gocache
|
|
||||||
# path: /go/pkg/mod
|
|
||||||
# - name: gobuild
|
|
||||||
# path: /root/.cache/go-build
|
|
||||||
# commands:
|
|
||||||
# - go build -o build/scraper ./cmd/scraper
|
|
||||||
|
|
||||||
# volumes:
|
|
||||||
# - name: gocache
|
|
||||||
# host:
|
|
||||||
# path: /opt/drone/cache/go
|
|
||||||
# - name: gobuild
|
|
||||||
# host:
|
|
||||||
# path: /opt/drone/cache/go-build
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user