修改drone流程,先让他符合暂时的需求
continuous-integration/drone/tag Build is passing
Details
continuous-integration/drone/tag Build is passing
Details
This commit is contained in:
parent
c4a41da72b
commit
4211482650
76
.drone.yml
76
.drone.yml
|
|
@ -30,47 +30,47 @@ steps:
|
|||
context: .
|
||||
platforms: linux/arm64
|
||||
|
||||
- name: scp-config-to-edge
|
||||
image: appleboy/drone-scp
|
||||
settings:
|
||||
host:
|
||||
from_secret: edge_host_ip
|
||||
username:
|
||||
from_secret: edge_user
|
||||
password:
|
||||
from_secret: edge_password
|
||||
port: 22
|
||||
target: /opt/edge-proxy
|
||||
source:
|
||||
- docker-compose.prod.yml
|
||||
- mediamtx.yml
|
||||
- mosquitto/config/mosquitto.conf
|
||||
# - name: scp-config-to-edge
|
||||
# image: appleboy/drone-scp
|
||||
# settings:
|
||||
# host:
|
||||
# from_secret: edge_host_ip
|
||||
# username:
|
||||
# from_secret: edge_user
|
||||
# password:
|
||||
# from_secret: edge_password
|
||||
# port: 22
|
||||
# target: /opt/edge-proxy
|
||||
# source:
|
||||
# - docker-compose.prod.yml
|
||||
# - mediamtx.yml
|
||||
# - mosquitto/config/mosquitto.conf
|
||||
|
||||
- name: deploy-to-edge
|
||||
image: appleboy/drone-ssh
|
||||
settings:
|
||||
host:
|
||||
from_secret: edge_host_ip
|
||||
username:
|
||||
from_secret: edge_user
|
||||
password:
|
||||
from_secret: edge_password
|
||||
port: 22
|
||||
# - name: deploy-to-edge
|
||||
# image: appleboy/drone-ssh
|
||||
# settings:
|
||||
# host:
|
||||
# from_secret: edge_host_ip
|
||||
# username:
|
||||
# from_secret: edge_user
|
||||
# password:
|
||||
# from_secret: edge_password
|
||||
# port: 22
|
||||
|
||||
ignore_stderr: true
|
||||
script:
|
||||
# ignore_stderr: true
|
||||
# script:
|
||||
|
||||
- mkdir -p /opt/edge-proxy
|
||||
- cd /opt/edge-proxy
|
||||
- echo "$REGISTRY_PASSWORD" | docker login 192.168.0.75:3000 -u "$REGISTRY_USER" --password-stdin
|
||||
# - mkdir -p /opt/edge-proxy
|
||||
# - cd /opt/edge-proxy
|
||||
# - echo "$REGISTRY_PASSWORD" | docker login 192.168.0.75:3000 -u "$REGISTRY_USER" --password-stdin
|
||||
|
||||
- docker compose -f docker-compose.prod.yml pull
|
||||
# - docker compose -f docker-compose.prod.yml pull
|
||||
|
||||
- docker compose -f docker-compose.prod.yml up -d --remove-orphans
|
||||
# - docker compose -f docker-compose.prod.yml up -d --remove-orphans
|
||||
|
||||
- docker image prune -f
|
||||
environment:
|
||||
REGISTRY_USER:
|
||||
from_secret: gitea_username
|
||||
REGISTRY_PASSWORD:
|
||||
from_secret: gitea_password
|
||||
# - docker image prune -f
|
||||
# environment:
|
||||
# REGISTRY_USER:
|
||||
# from_secret: gitea_username
|
||||
# REGISTRY_PASSWORD:
|
||||
# from_secret: gitea_password
|
||||
Loading…
Reference in New Issue