Merge pull request 'newone' (#6) from newone into main
continuous-integration/drone/push Build is passing Details

Reviewed-on: #6
This commit is contained in:
hardik 2026-05-29 13:12:33 +05:30
commit 1f4f6fefea
1 changed files with 37 additions and 6 deletions

View File

@ -1,9 +1,40 @@
# kind: pipeline
kind: pipeline
type: docker
name: test
name: Build Image
steps:
- name: hello
image: alpine
commands:
- echo "Drone is working"
- 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