Initial commit.
continuous-integration/drone Build is failing
Details
continuous-integration/drone Build is failing
Details
Signed-off-by: Yilin Sun <imi415@imi.moe>
This commit is contained in:
commit
672618562b
|
@ -0,0 +1,28 @@
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: vm
|
||||||
|
name: Container
|
||||||
|
|
||||||
|
pool:
|
||||||
|
use: do-docker-20-04
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Build
|
||||||
|
commands:
|
||||||
|
- docker buildx build -t ntripcaster .
|
||||||
|
|
||||||
|
- name: Image Preparation
|
||||||
|
environment:
|
||||||
|
REGISTRY_USER:
|
||||||
|
from_secret: docker_user
|
||||||
|
REGISTRY_PASS:
|
||||||
|
from_secret: docker_pass
|
||||||
|
commands:
|
||||||
|
- docker tag ntripcaster git.minori.work/embedded_sdk/ntripcaster:latest
|
||||||
|
- docker tag ntripcaster git.minori.work/embedded_sdk/ntripcaster:0.1.5
|
||||||
|
- docker login -u $REGISTRY_USER -p $REGISTRY_PASS git.minori.work
|
||||||
|
|
||||||
|
- name: Push
|
||||||
|
commands:
|
||||||
|
- docker push git.minori.work/embedded_sdk/ntripcaster:latest
|
||||||
|
- docker push git.minori.work/embedded_sdk/ntripcaster:0.1.5
|
|
@ -0,0 +1,3 @@
|
||||||
|
[submodule "ntripcaster"]
|
||||||
|
path = ntripcaster
|
||||||
|
url = https://github.com/thpe/ntripcaster.git
|
|
@ -0,0 +1,15 @@
|
||||||
|
FROM alpine:latest AS builder
|
||||||
|
|
||||||
|
RUN apk add build-base
|
||||||
|
|
||||||
|
ADD ntripcaster/ntripcaster0.1.5 /src
|
||||||
|
|
||||||
|
WORKDIR /src
|
||||||
|
|
||||||
|
RUN ./configure --prefix=/app && make && make install
|
||||||
|
|
||||||
|
FROM alpine:latest
|
||||||
|
|
||||||
|
COPY --from=builder /app /app
|
||||||
|
|
||||||
|
CMD [ "/app/bin/ntripcaster" ]
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 6f624b42a0065098d160a696a15c6913841f0acd
|
Loading…
Reference in New Issue