Add .drone.yml
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone/tag Build is failing
continuous-integration/drone Build is failing

This commit is contained in:
Austen Adler 2022-12-23 00:08:55 -05:00
parent 9ad213a676
commit 3ece8771a2

38
.drone.yml Normal file
View File

@ -0,0 +1,38 @@
---
kind: pipeline
name: live-cli
type: docker
steps:
- name: Run earthly
image: earthly/earthly
privileged: true
volumes:
- name: docker_sock
path: /var/run/docker.sock
- name: dist
path: /dist
commands:
- 'file /var/run/docker.sock || :'
- 'pwd'
# - 'earthly +all'
# TODO: use more than one target
- 'earthly --build-arg TOOLCHAIN=x86_64-unknown-linux-musl --build-arg STRIP_CMD=x86_64-linux-gnu-strip +build'
- 'cp -v ./dist/* /dist/'
- name: Gitea Artifacts
image: plugins/gitea-release
settings:
api_key: "$${GITEA_API_KEY}"
base_url: https://gitea.austen-wares.com
files: dist/*
volumes:
- name: dist
path: /dist
volumes:
- name: docker_sock
host:
path: /var/run/docker.sock
- name: dist
temp: {}