rgbled/.gitlab-ci.yml

45 lines
1.4 KiB
YAML
Raw Normal View History

2019-04-30 13:53:11 +02:00
stages:
- build
2019-04-30 15:38:41 +02:00
- release
2019-04-30 13:53:11 +02:00
build:
stage: build
2020-07-26 13:34:38 +02:00
image: registry.hottis.de/dockerized/build-env-arduino:latest
2019-04-30 13:53:11 +02:00
tags:
- hottis
- linux
- docker
2019-04-30 14:00:39 +02:00
variables:
GIT_SUBMODULE_STRATEGY: recursive
2019-04-30 14:59:32 +02:00
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
paths:
- sketch.esp8266.esp8266.nodemcu.bin
2019-05-30 17:34:56 +02:00
except:
- tags
2019-04-30 13:54:56 +02:00
script:
2019-05-17 17:54:59 +02:00
- pushd $CI_PROJECT_DIR/libraries/esp8266boilerplate/ConfigGenerator && ./configGen.sh && popd
2019-04-30 14:40:01 +02:00
- env ARDUINO_SKETCHBOOK_DIR=$CI_PROJECT_DIR arduino-cli compile --fqbn=esp8266:esp8266:nodemcu $CI_PROJECT_DIR/sketch
2019-04-30 15:02:52 +02:00
- cp sketch/sketch.esp8266.esp8266.nodemcu.* .
2019-04-30 15:01:19 +02:00
2019-04-30 13:53:11 +02:00
2019-04-30 15:38:41 +02:00
release:
stage: release
2020-07-26 13:34:38 +02:00
image: registry.hottis.de/dockerized/base-build-env
2019-04-30 15:38:41 +02:00
tags:
- hottis
- linux
- docker
dependencies:
- build
2019-05-30 13:26:09 +02:00
only:
2019-05-30 17:34:56 +02:00
refs:
- release
2019-04-30 15:38:41 +02:00
script:
2020-07-26 13:33:07 +02:00
- 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
-I $CI_SERVER_URL
2019-04-30 13:53:11 +02:00