Add quark build and publish

This commit is contained in:
Armin Friedl 2020-08-18 22:30:33 +02:00
commit 62ce3d0b45
2 changed files with 41 additions and 0 deletions

36
.drone.yml Normal file
View file

@ -0,0 +1,36 @@
kind: pipeline
type: docker
name: default
steps:
- name: build
image: gcc
commands:
- git clone https://git.suckless.org/quark
- cd quark
- curl -o patch.diff https://dirlist.friedl.net/suckless/quark/quark-resourcedepletion-17082020-6606994.diff
- git apply patch.diff
- make
- name: publish-quark
image: appleboy/drone-scp
settings:
host: friedl.net
target: /var/services/dirlist/repo/bin/suckless
source: quark/quark
username:
from_secret: ssh_username
password:
from_secret: ssh_password
- name: publish-container
image: plugins/docker
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
dockerfile: Dockerfile
purge: true
repo: arminfriedl/quark
tags: latest

5
Dockerfile Normal file
View file

@ -0,0 +1,5 @@
FROM alpine
COPY quark/quark /usr/local/bin
ENTRYPOINT ["/bin/sh"]