cicd pipeline setup
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Mihir Motiyani 2025-05-15 15:33:23 +05:30
parent bca3be6139
commit bdbdfcd63c
1 changed files with 50 additions and 0 deletions

50
.drone.yml Normal file
View File

@ -0,0 +1,50 @@
kind: pipeline
name: Build Image
steps:
# - name: Lint Check
# image: node:21-alpine
# commands:
# - yarn install
# # - yarn lint
- name: Build Docker Image
image: plugins/docker
settings:
build_args: "API_BASE_URL=https://quadraedge-api.midastix.com"
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: git.midastix.com/ci-docker-repo-user/quadraedge
registry: git.midastix.com
when:
branch:
- main
event:
- push
- name: Deploy image
image: appleboy/drone-ssh
settings:
host: quadraedge.in
username: quadraedge
key:
from_secret: server_ssh_pkey
port: 22
command_timeout: 3m
script:
- echo "Deploying image"
- sudo /opt/deployable/quadraedge/docker/deploy.sh
- echo "Completed Deployment"
when:
branch:
- main
event:
- push
# trigger:
# branch:
# - main
# - feature/env_api_url
# event:
# - push