2020-08-16 21:19:36 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
2020-09-01 20:50:47 +00:00
|
|
|
- name: glibc-x86_64
|
2020-08-16 21:19:36 +00:00
|
|
|
image: gcc
|
|
|
|
commands:
|
2020-09-01 22:22:58 +00:00
|
|
|
- make clean && make all
|
2020-09-01 20:50:47 +00:00
|
|
|
- mv dirl dirl-glibc-x86_64
|
2020-08-16 21:19:36 +00:00
|
|
|
|
2020-09-01 20:50:47 +00:00
|
|
|
- name: musl-x86_64
|
|
|
|
image: alpine
|
|
|
|
commands:
|
|
|
|
- apk update && apk add make git build-base linux-headers musl-dev
|
2020-09-01 22:22:58 +00:00
|
|
|
- make clean && make STATIC=-static all
|
2020-09-01 20:50:47 +00:00
|
|
|
- mv dirl dirl-musl-x86_64
|
|
|
|
|
|
|
|
- name: publish binaries
|
2020-08-30 17:07:57 +00:00
|
|
|
image: appleboy/drone-scp
|
|
|
|
settings:
|
|
|
|
host: friedl.net
|
|
|
|
username:
|
|
|
|
from_secret: deploy_user
|
|
|
|
password:
|
|
|
|
from_secret: deploy_password
|
|
|
|
port: 22
|
2020-09-01 20:50:47 +00:00
|
|
|
target: /var/services/dirlist/repo/bin/dirl
|
|
|
|
source:
|
|
|
|
- dirl-glibc-x86_64
|
|
|
|
- dirl-musl-x86_64
|
|
|
|
|
|
|
|
- name: publish-container
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
purge: true
|
|
|
|
repo: arminfriedl/dirl
|
|
|
|
tags: latest
|