Add .drone.yml
This commit is contained in:
+38
@@ -0,0 +1,38 @@
|
|||||||
|
################################################################################
|
||||||
|
# web
|
||||||
|
################################################################################
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: (web dev) 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: push to artifactory
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
username: cicd
|
||||||
|
password:
|
||||||
|
from_secret: REGISTRY_PASSWORD
|
||||||
|
dockerfile: Dockerfile-drone
|
||||||
|
repo: artifactory.ravanertebat.ir/tm/web
|
||||||
|
registry: artifactory.ravanertebat.ir
|
||||||
|
|
||||||
|
node:
|
||||||
|
tag: aecde-docker-runner
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- develop
|
||||||
|
event:
|
||||||
|
- custom
|
||||||
Reference in New Issue
Block a user