rgbled/.gitlab-ci.yml

43 lines
1.3 KiB
YAML

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
- sketch.esp8266.esp8266.nodemcu.elf
script:
- 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
variables:
GIT_STRATEGY: none
script:
- curl --request POST \
--header "PRIVATE-TOKEN: $CI_JOB_TOKEN" \
--data name="awesume-v0.2.iso" \
--data url="https://home.hottis.de" \
"https://gitlab.com/api/v4/projects/10877064/releases/v0.1/assets/links"