Update .drone.yml
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Mihir Motiyani 2026-11-17 13:52:03 +05:30
parent c86d4fd3bb
commit 770b8e0727
1 changed files with 50 additions and 47 deletions

View File

@ -1,47 +1,50 @@
kind: pipeline
type: docker
name: Build Image
steps:
- name: Quality gates
image: node:24-alpine
commands:
- npm ci
- npm audit --audit-level=high
- npm run check
- name: Build Docker Image
image: plugins/docker
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: git.midastix.com/ci-docker-repo-user/manicandles
registry: git.midastix.com
when:
branch:
- main
event:
- push
- name: Deploy image
image: appleboy/drone-ssh
settings:
host: server1.midastix.com
username: root
key:
from_secret: server_ssh_pkey
port: 22
command_timeout: 5m
script:
- echo "Deploying ManiCandles"
- sudo /opt/deployable/manicandles/docker/deploy.sh
- echo "Completed Deployment"
when:
branch:
- main
event:
- push
kind: pipeline
type: docker
name: Build Image
steps:
- name: Quality gates
image: node:24-alpine
commands:
- npm ci
- npm audit --audit-level=high
- npm run check
- name: Build Docker Image
image: plugins/docker
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: git.midastix.com/ci-docker-repo-user/manicandles
registry: git.midastix.com
when:
branch:
- main
event:
- push
- name: Deploy image
image: appleboy/drone-ssh
settings:
host: server1.midastix.com
username: mihir
key:
from_secret: manicandles_deploy_key
port: 22
command_timeout: 5m
script_stop: true
script:
- whoami
- hostname
- echo "ManiCandles SSH authentication successful"
when:
branch:
- main
event:
- push