Auto-publish releases to Gitea
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2025-10-29 17:54:44 +01:00
parent abdca20a66
commit c90a05fcfd

View File

@@ -46,6 +46,11 @@ steps:
path: /usr/local/cargo/registry path: /usr/local/cargo/registry
- name: web_app - name: web_app
path: /tmp/web_build path: /tmp/web_build
- name: releases
path: /tmp/releases
when:
event:
- tag
depends_on: depends_on:
- backend_check - backend_check
- web_build - web_build
@@ -54,13 +59,41 @@ steps:
- mv /tmp/web_build/dist static - mv /tmp/web_build/dist static
- cargo build --release - cargo build --release
- ls -lah target/release/central_backend - ls -lah target/release/central_backend
- mv target/release/central_backend /tmp/releases/central_backend
# Build ESP32 program
- name: esp32_compile - name: esp32_compile
image: espressif/idf:v5.5.1 image: espressif/idf:v5.5.1
volumes:
- name: releases
path: /tmp/releases
commands: commands:
- cd esp32_device - cd esp32_device
- /opt/esp/entrypoint.sh idf.py build - /opt/esp/entrypoint.sh idf.py build
- ls -lah build/main.bin - ls -lah build/main.bin
- cp build/main.bin /releases/wt32-eth01.bin
# Auto-release to Gitea
- name: gitea_release
image: plugins/gitea-release
depends_on:
- backend_compile
- esp32_compile
when:
event:
- tag
volumes:
- name: releases
path: /tmp/releases
environment:
PLUGIN_API_KEY:
from_secret: GITEA_API_KEY # needs permission write:repository
settings:
base_url: https://gitea.communiquons.org
files:
- /tmp/releases/central_backend
- /tmp/releases/wt32-eth01.bin
checksum: sha512
volumes: volumes:
@@ -68,3 +101,5 @@ volumes:
temp: {} temp: {}
- name: web_app - name: web_app
temp: {} temp: {}
- name: releases
temp: {}