diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..dace620 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,41 @@ +stages: + - build + - release + +build: + stage: build + image: registry.gitlab.com/wolutator/build-env-arduino:latest + tags: + - hottis + - linux + - docker + variables: + GIT_SUBMODULE_STRATEGY: recursive + artifacts: + name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME" + paths: + - sketch.esp8266.esp8266.nodemcu.bin + except: + - tags + script: + - pushd $CI_PROJECT_DIR/libraries/esp8266boilerplate/ConfigGenerator && ./configGen.sh && popd + - env ARDUINO_SKETCHBOOK_DIR=$CI_PROJECT_DIR arduino-cli compile --fqbn=esp8266:esp8266:nodemcu $CI_PROJECT_DIR/sketch + - cp sketch/sketch.esp8266.esp8266.nodemcu.* . + + +release: + stage: release + image: registry.gitlab.com/wolutator/base-build-env + tags: + - hottis + - linux + - docker + dependencies: + - build + only: + refs: + - release + script: + - gitlabreleaseuploader.py -p $PRIVATE_TOKEN -i $CI_PROJECT_ID -u $CI_PROJECT_URL + -f sketch.esp8266.esp8266.nodemcu.bin -F releaseInfo.json -T $CI_COMMIT_REF_NAME + diff --git a/releaseInfo.json b/releaseInfo.json new file mode 100644 index 0000000..e3a1ae2 --- /dev/null +++ b/releaseInfo.json @@ -0,0 +1,8 @@ +{ + "releaseTag": "v0.0.1", + "createReleaseTag": "true", + "releaseName": "initial", + "description": "initial automatic build" +} + +