tcp-stream-proxy/.drone.yml

25 lines
606 B
YAML
Raw Normal View History

2023-01-28 20:30:10 +01:00
kind: pipeline
type: docker
name: default
steps:
- name: build
image: "nixos/nix"
environment:
USER: root
commands:
- nix --extra-experimental-features 'nix-command flakes' build
2023-01-28 20:55:52 +01:00
- chown -R curl_user:curl_user ./result
2023-01-28 20:30:10 +01:00
- name: upload
image: "curlimages/curl"
environment:
TOKEN:
from_secret: gitea
commands:
2023-01-28 20:55:52 +01:00
- ls -alh ./result
- whoami
- curl --user garionion:$TOKEN --upload-file ./result https://git.entr0py.de/api/packages/garionion/generic/tcp-stream-proxy/${DRONE_TAG}/tcp-proxy
2023-01-28 20:30:10 +01:00
when:
ref:
- refs/tags/*