init
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simon Bruder 2019-06-11 17:21:17 +00:00
commit 50223a8c4d
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F
2 changed files with 36 additions and 0 deletions

13
.drone.yml Normal file
View file

@ -0,0 +1,13 @@
kind: pipeline
name: default
steps:
- name: opustags
image: plugins/docker
settings:
registry: r.sbruder.de
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: r.sbruder.de/opustags

23
Dockerfile Normal file
View file

@ -0,0 +1,23 @@
FROM alpine as builder
RUN apk add --no-cache \
build-base \
cmake \
git \
libogg-dev \
pkgconf
RUN git clone --depth=1 https://github.com/fmang/opustags \
&& cd opustags \
&& sed -i -e 's/target_link_libraries(\(.*\))/target_link_libraries(\1 -static)/g' CMakeLists.txt \
&& mkdir build \
&& cd build \
&& cmake .. \
&& make -j 4 \
&& strip opustags
FROM scratch
COPY --from=builder /opustags/build/opustags /opustags
ENTRYPOINT ["/opustags"]