Initial commit
continuous-integration/drone Build is passing Details

This commit is contained in:
Lauri Võsandi 2022-03-15 09:29:18 +02:00 committed by Lauri Võsandi
commit 39ef29cf6a
2 changed files with 28 additions and 0 deletions

16
.drone.yml Normal file
View File

@ -0,0 +1,16 @@
---
kind: pipeline
type: kubernetes
name: default
steps:
- name: docker
image: plugins/docker
settings:
repo: harbor.k-space.ee/${DRONE_REPO}
registry: harbor.k-space.ee
mtu: 1300
username:
from_secret: docker_username
password:
from_secret: docker_password

12
Dockerfile Normal file
View File

@ -0,0 +1,12 @@
FROM espressif/idf:v4.4
ENV DEBIAN_FRONTEND=noninteractive
RUN : \
&& apt-get update \
&& apt-get install -y pkg-config \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
RUN git clone --depth 1 -b v1.18 https://github.com/micropython/micropython.git /src
RUN cd /src/mpy-cross && make
RUN cd /src/ports/unix && make submodules && make
RUN cd /src/ports/esp32 && bash -c "source /opt/esp/idf/export.sh && make"
CMD /src/ports/unix/micropython