Docker Image for arduino-cli
-
Where to get help:
the Docker Community Forums, the Docker Community Slack, or Stack Overflow -
Where to file issues:
GitHub Issues Page -
Maintained by:
ElectroStar
To use this Image with Gitlab-CI use the following commands in a .gitlab-ci.yml - File:
stages:
- build
build_project:
stage: build
image: electrostar/arduino-cli:latest
script:
- arduino-cli compile -b arduino:avr:nano:cpu=atmega328old Blink.ino -o Blink.hex
artifacts:
paths:
- Blink.hex
expire_in: 3 hrs
only:
- master
Just replace the qualified board name (-b arduino:...) for your specific target and change the names for input project and the output file.
- AVR
To use additional Packages like megaavr, sam or samd
you have to install these packages first.
To do that just add before_script and use the update-index and install commands like in the following lines:
build_project:
before_script:
- arduino-cli core update-index
- arduino-cli core install arduino:megaavr
The Dockerfiles and associated scripts are licensed under the MIT License.