initial commit
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Luca 2024-07-21 21:51:41 +02:00
commit 975634bbe0
2 changed files with 37 additions and 0 deletions

21
.drone.yml Normal file
View File

@ -0,0 +1,21 @@
---
kind: pipeline
type: docker
name: default
steps:
- name: build docker image
image: plugins/kaniko
settings:
auto_tag: yes
password:
from_secret: access_token
registry: git.luj0ga.de
repo: git.luj0ga.de/luca/docker-embedded-rust
username: _
trigger:
event:
- push
- tag

16
Dockerfile Normal file
View File

@ -0,0 +1,16 @@
FROM rust:1
RUN useradd -D -h /build bob \
&& cp -r /usr/local/cargo /build/.cargo \
&& chown -R bob:bob /build/.cargo \
&& cp -r /usr/local/rustup /build/.rustup \
&& chown -R bob:bob /build/.rustup \
&& sed -i 's@/usr/local/cargo@~/.cargo@' /build/.cargo/env \
&& echo '. ~/.cargo/env' >> /build/.profile
USER bob
WORKDIR /build
RUN rustup target add thumbv6m-none-eabi \
&& rustup component add llvm-tools \
&& cargo install cargo-binutils