tcp-stream-proxy/.drone.yml

23 lines
596 B
YAML
Raw Normal View History

2023-01-28 20:30:10 +01:00
kind: pipeline
type: docker
name: default
steps:
- name: build
2023-01-28 20:55:52 +01:00
image: "nixery.dev/shell/nix/git/shadow"
2023-01-28 20:30:10 +01:00
commands:
2023-01-28 20:55:52 +01:00
- useradd nixbld
- useradd -u 0 root
2023-01-28 20:30:10 +01:00
- nix --extra-experimental-features 'nix-command flakes' build
2023-01-28 20:55:52 +01:00
- cp ./result tcp-proxy
2023-01-28 20:30:10 +01:00
- name: upload
2023-01-28 20:55:52 +01:00
image: "nixery.dev/shell/curl"
2023-01-28 20:30:10 +01:00
environment:
TOKEN:
from_secret: gitea
commands:
2023-01-28 20:55:52 +01:00
- curl --user garionion:$TOKEN --upload-file ./tcp-proxy 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/*