fix drone1
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
752032e582
commit
4780ce13b8
41
.drone.yml
41
.drone.yml
|
|
@ -1,9 +1,40 @@
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: test
|
name: Build Image
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: hello
|
- name: Build Docker Image
|
||||||
image: alpine
|
image: plugins/docker
|
||||||
commands:
|
settings:
|
||||||
- echo "Drone is working"
|
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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue