|
@ -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 |
|
|