Init
continuous-integration/drone/push Build is passing Details

master
Simon Bruder 2020-05-30 17:50:45 +02:00
commit 7c1ae2177f
No known key found for this signature in database
GPG Key ID: 6F03E0000CC5B62F
2 changed files with 26 additions and 0 deletions

13
.drone.yml Normal file
View File

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

13
Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM alpine as builder
RUN apk add --no-cache build-base git
RUN git clone --depth=1 https://github.com/mon/s3p_extract \
&& cd s3p_extract \
&& gcc -Wall -Werror s3p_extract.c -static -o s3p_extract
FROM alpine
COPY --from=builder /s3p_extract/s3p_extract /usr/local/bin/
ENTRYPOINT ["/usr/local/bin/s3p_extract"]