update ci to use idf and attempt release
Some checks failed
ci/woodpecker/manual/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/manual/woodpecker Pipeline failed
This commit is contained in:
parent
8911bcecb2
commit
5ba2058b7c
1 changed files with 18 additions and 8 deletions
|
@ -3,19 +3,29 @@ labels:
|
|||
|
||||
steps:
|
||||
build:
|
||||
image: bash
|
||||
image: espressif/idf:v5.2.2
|
||||
when:
|
||||
- event: [ tag, push, manual ]
|
||||
commands:
|
||||
- mkdir ~/.ssh
|
||||
- ssh-keyscan -t rsa git.oit.cloud >> ~/.ssh/known_hosts
|
||||
- git submodule update --init
|
||||
- if [ -f sdkconfig ]; then
|
||||
- rm sdkconfig
|
||||
- fi
|
||||
- id
|
||||
- . /opt/esp/idf/install.sh
|
||||
- . /opt/esp/idf/export.sh
|
||||
- idf.py reconfigure
|
||||
- echo "BB-CI-$((1 + RANDOM % 999))" > bbid
|
||||
- sed -i -e s/BARBACK_ID=\"Barback\"/BARBACK_ID=\"`cat bbid`\"/ sdkconfig
|
||||
- idf.py reconfigure
|
||||
- idf.py build
|
||||
release:
|
||||
image: woodpeckerci/plugin-release
|
||||
secrets: [ ACCESS_TOKEN ]
|
||||
when:
|
||||
- event: tag
|
||||
settings:
|
||||
log_level: debug
|
||||
title: 'Release ${CI_COMMIT_TAG}'
|
||||
files:
|
||||
- 'build/barhead.bin'
|
||||
api_key:
|
||||
from_secret: ACCESS_TOKEN
|
||||
generate_release_notes: true
|
||||
overwrite: true
|
||||
upload-url: https://git.oit.cloud/repos/${CI_REPO}/releases
|
||||
|
|
Loading…
Reference in a new issue