added drone yml file
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Vikalp 2026-04-11 08:54:01 +05:30
parent cb34dd7350
commit 95ad12d8a5
1 changed files with 44 additions and 0 deletions

44
.drone.yml Normal file
View File

@ -0,0 +1,44 @@
kind: pipeline
name: Build Image
steps:
- name: Lint Check
image: node:21-alpine
commands:
- npm install
# - npm run lint
- name: Build Docker Image
image: plugins/docker
settings:
build_args: ''
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: git.midastix.com/ci-docker-repo-user/gem-track-backend
registry: git.midastix.com
when:
branch:
- main
event:
- push
- name: Deploy image
image: appleboy/drone-ssh
settings:
host: gem-track-backend.midastix.com
username: gem-track-backend
key:
from_secret: server_ssh_pkey
port: 22
command_timeout: 3m
script:
- echo "Deploying image"
- sudo /opt/deployable/gem-track-backend/docker/deploy.sh
- echo "Completed Deployment"
when:
branch:
- main
event:
- push