Skip to content

Commit 3b12d0a

Browse files
committed
Persist config
1 parent f0b78f3 commit 3b12d0a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

arduino/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ RUN \
2020
# Arduino CLI
2121

2222
RUN \
23-
if [ "$URL" != "" ] ; then export URL_FINAL="--additional-urls ${URL}" ; else export URL_FINAL="" ; fi \
23+
arduino-cli config init \
24+
&& if [ "$URL" != "" ] ; then arduino-cli config add board_manager.additional_urls ${URL} ; fi \
2425
&& if [ "$VERSION" != "latest" ] ; then export CORE_FINAL="${CORE}@${VERSION}" ; else export CORE_FINAL="${CORE}" ; fi \
25-
&& arduino-cli core update-index ${URL_FINAL} \
26-
&& arduino-cli core install ${CORE_FINAL} ${URL_FINAL}
26+
&& arduino-cli core update-index \
27+
&& arduino-cli core install ${CORE_FINAL}

0 commit comments

Comments
 (0)