stages: - build - flash build: image: espressif/idf:release-v4.1 stage: build cache: key: "$CI_BUILD_REF_NAME" paths: - sdkconfig - build script: - if [ -f sdkconfig ]; then - rm sdkconfig - fi - 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 flash: image: espressif/idf:release-v4.1 stage: flash cache: key: "$CI_BUILD_REF_NAME" paths: - sdkconfig - build script: - cat sdkconfig - idf.py flash