added drone yml file
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
cb34dd7350
commit
95ad12d8a5
|
|
@ -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
|
||||
Loading…
Reference in New Issue