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