Browse Source

change drone

master
devops 2 weeks ago
parent
commit
5ada4015e8
  1. 55
      .drone.yml

55
.drone.yml

@ -174,61 +174,6 @@ steps:
- rollback - rollback
target: target:
- prod - prod
#================================= oem ==========================
# - name: upload to oem oss
# commands:
# - python3 /home/devops/python_script/aliyun/upload.py
# pull: never
# image: oss2:latest
# volumes:
# - name: files
# path: /files
# - name: scripts
# path: /scripts
# commands:
# - python3 /scripts/oss.py oem-${DRONE_REPO_NAME} backup
# - python3 /scripts/oss.py oem-${DRONE_REPO_NAME} upload
# when:
# event:
# - promote
# target:
# - oem
# - name: restore to oem oss
# pull: never
# image: oss2:latest
# volumes:
# - name: files
# path: /files
# - name: scripts
# path: /scripts
# commands:
# - python3 /scripts/oss.py oem-${DRONE_REPO_NAME} restore
# when:
# event:
# - rollback
# target:
# - oem
# - name: flush oem cdn
# pull: never
# image: oss2:latest
# volumes:
# - name: files
# path: /files
# - name: scripts
# path: /scripts
# commands:
# - sleep 3
# - echo https://web.minimi.studio/ > /scripts/oem
# - echo https://www.sailner.web/ >> /scripts/oem
# - cd /scripts && python3 /scripts/refresh.py -r oem -t clear
# when:
# event:
# - promote
# target:
# - oem
#================================= sharewow3d ==========================
volumes: volumes:
- name: files - name: files
host: host:

Loading…
Cancel
Save