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