|
|
|
|
@ -3,7 +3,7 @@ type: docker |
|
|
|
|
name: build-and-deploy |
|
|
|
|
|
|
|
|
|
steps: |
|
|
|
|
- name: deploy |
|
|
|
|
- name: files-to-server |
|
|
|
|
image: appleboy/drone-scp |
|
|
|
|
settings: |
|
|
|
|
host: 192.168.0.129 |
|
|
|
|
@ -15,7 +15,7 @@ steps: |
|
|
|
|
target: /root/docker/trash-api/ |
|
|
|
|
source: . |
|
|
|
|
|
|
|
|
|
- name: build-docker-image |
|
|
|
|
- name: build-deploy-docker-image |
|
|
|
|
image: appleboy/drone-ssh |
|
|
|
|
settings: |
|
|
|
|
host: 192.168.0.129 |
|
|
|
|
@ -29,7 +29,7 @@ steps: |
|
|
|
|
- docker build -f Dockerfile-api -t trash-api . |
|
|
|
|
- docker stop trash-api || true |
|
|
|
|
- docker rm trash-api || true |
|
|
|
|
- docker run -d -p 1778:1778 --name trash-api trash-api |
|
|
|
|
- docker run -d -p 3001:3001 --name trash-api trash-api |
|
|
|
|
|
|
|
|
|
- name: telegram notification |
|
|
|
|
image: appleboy/drone-telegram |
|
|
|
|
|