Initial commit.
continuous-integration/drone Build is failing Details

Signed-off-by: Yilin Sun <imi415@imi.moe>
This commit is contained in:
Yilin Sun 2024-03-24 13:53:48 +08:00
commit 672618562b
Signed by: imi415
GPG Key ID: 17F01E106F9F5E0A
4 changed files with 47 additions and 0 deletions

28
.drone.yml Normal file
View File

@ -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

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "ntripcaster"]
path = ntripcaster
url = https://github.com/thpe/ntripcaster.git

15
Dockerfile Normal file
View File

@ -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" ]

1
ntripcaster Submodule

@ -0,0 +1 @@
Subproject commit 6f624b42a0065098d160a696a15c6913841f0acd