Build separate dirl binary
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Armin Friedl 2020-08-31 20:51:57 +02:00
parent 1fba927acb
commit a35d80124a
2 changed files with 9 additions and 7 deletions

View file

@ -1,6 +1,6 @@
kind: pipeline kind: pipeline
type: docker type: docker
name: default name: dirl
steps: steps:
- name: build - name: build
@ -11,13 +11,15 @@ steps:
- cd suckless-quark - cd suckless-quark
- git checkout dirlist - git checkout dirlist
- make - make
- mv quark quark-dirl
- name: publish-quark - name: publish-dirl
image: appleboy/drone-scp image: appleboy/drone-scp
settings: settings:
host: friedl.net host: friedl.net
target: /var/services/dirlist/repo/bin/suckless target: /var/services/dirlist/repo/bin/suckless/quark
source: suckless-quark/quark source: suckless-quark/quark-dirl
strip_components: 1
username: username:
from_secret: ssh_username from_secret: ssh_username
password: password:
@ -33,4 +35,4 @@ steps:
dockerfile: Dockerfile dockerfile: Dockerfile
purge: true purge: true
repo: arminfriedl/quark repo: arminfriedl/quark
tags: latest tags: dirl

View file

@ -4,6 +4,6 @@ RUN adduser web --disabled-password --no-create-home --shell /sbin/nologin && \
addgroup web web && \ addgroup web web && \
mkdir -p /var/www/html mkdir -p /var/www/html
COPY suckless-quark/quark /usr/local/bin COPY suckless-quark/quark-dirl /usr/local/bin
ENTRYPOINT ["quark", "-p", "80", "-u", "web", "-g", "web", "-n", "4096", "-h", "0.0.0.0", "-l", "-d", "/var/www/html"] ENTRYPOINT ["quark-dirl", "-p", "80", "-u", "web", "-g", "web", "-n", "4096", "-h", "0.0.0.0", "-l", "-d", "/var/www/html"]