Browse Source

drone ci

main
Hendrik Langer 4 years ago
parent
commit
2ae64c9065
  1. 4
      .drone.yml

4
.drone.yml

@ -15,7 +15,7 @@ steps:
# prepare deployment # prepare deployment
- mkdir deploy - mkdir deploy
- cp .pio/build/lolin_d32_pro/firmware.bin deploy/${DRONE_REPO_NAME}.bin - cp .pio/build/lolin_d32_pro/firmware.bin deploy/${DRONE_REPO_NAME}.bin
- cp version.txt deploy/${DRONE_REPO_NAME}.version - cp version.txt deploy/${DRONE_REPO_NAME}.bin.version
- name: gitea_release - name: gitea_release
image: plugins/gitea-release image: plugins/gitea-release
@ -32,7 +32,7 @@ steps:
image: appleboy/drone-scp image: appleboy/drone-scp
settings: settings:
host: 172.16.85.15 host: 172.16.85.15
target: /var/www/fwupdate/fota/${DRONE_REPO_NAME} target: /var/www/fwupdate/fota
source: source:
- deploy/${DRONE_REPO_NAME}.bin - deploy/${DRONE_REPO_NAME}.bin
- deploy/${DRONE_REPO_NAME}.version - deploy/${DRONE_REPO_NAME}.version

Loading…
Cancel
Save