-
Notifications
You must be signed in to change notification settings - Fork 0
/
drone.yml
45 lines (42 loc) · 1.21 KB
/
drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
kind: pipeline
type: docker
name: Lake_Stats_API
steps:
- name: docker build
image: plugins/docker
command:
environment:
INFLUX_KEY:
from_secret: INFLUX_KEY
settings:
repo: 192.168.1.136:9005/lake_stats_api
registry: 192.168.1.136:9005
tags: latest
insecure: true
build_args_from_env:
- INFLUX_KEY
#- name: ssh-docker-host
# image: appleboy/drone-ssh
# environment:
# USERPASS:
# from_secret: drone-service-user-password
# settings:
# host: 192.168.1.136
# port: 22
# username: drone-service-user
# password:
# from_secret: drone-service-user-password
# envs: [ USERPASS ]
# script:
# - echo $${USERPASS} | sudo -S ls /var/lib/docker/volumes/portainer_data/_data/compose/
# - echo $${USERPASS} | sudo -S docker-compose -f /var/lib/docker/volumes/portainer_data/_data/compose/109/docker-compose.yml pull
# - echo $${USERPASS} | sudo -S docker stop lake_stats_api
# - echo $${USERPASS} | sudo -S docker rm lake_stats_api
# - echo $${USERPASS} | sudo -S docker-compose -f /var/lib/docker/volumes/portainer_data/_data/compose/109/docker-compose.yml up --detach
#trigger:
# branch:
# - master
# event:
# - pull_request
# status:
# - success