initial commit
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
commit
975634bbe0
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue