21 lines
No EOL
539 B
YAML
21 lines
No EOL
539 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
steps:
|
|
- name: build
|
|
image: "nixos/nix"
|
|
commands:
|
|
- nix --extra-experimental-features 'nix-command flakes' build
|
|
- cp ./result/bin/tcp-proxy tcp-proxy
|
|
|
|
- name: upload
|
|
image: "nixery.dev/shell/curl"
|
|
environment:
|
|
TOKEN:
|
|
from_secret: gitea
|
|
commands:
|
|
- curl --user garionion:$TOKEN --upload-file ./tcp-proxy https://git.entr0py.de/api/packages/garionion/generic/tcp-stream-proxy/${DRONE_TAG}/tcp-proxy
|
|
when:
|
|
ref:
|
|
- refs/tags/* |