drone: add gitea publish

This commit is contained in:
Aode (lion) 2021-12-04 13:24:41 -06:00
parent 9734f7bfd6
commit b2db4d5ba1

View file

@ -124,6 +124,7 @@ steps:
- cargo build --target=$TARGET --release
- $TOOL-strip target/$TARGET/release/pict-rs
- cp target/$TARGET/release/pict-rs .
- cp pict-rs pict-rs-linux-amd64
- name: push
image: plugins/docker:20
@ -139,6 +140,18 @@ steps:
- REPO_ARCH=amd64
- TARGET_ARCH=x86_64-unknown-linux-musl
- name: publish
image: plugins/gitea-release:1
settings:
api_key:
from_secret: gitea_token
base_url: https://git.asonix.dog
files:
- pict-rs-linux-amd64
checksum:
- sha256
- sha512
trigger:
event:
- tag
@ -203,6 +216,7 @@ steps:
- cargo build --target=$TARGET --release
- $TOOL-strip target/$TARGET/release/pict-rs
- cp target/$TARGET/release/pict-rs .
- cp pict-rs pict-rs-linux-arm64v8
- name: push
image: plugins/docker:20
@ -218,6 +232,18 @@ steps:
- REPO_ARCH=arm64v8
- TARGET_ARCH=aarch64-unknown-linux-musl
- name: publish
image: plugins/gitea-release:1
settings:
api_key:
from_secret: gitea_token
base_url: https://git.asonix.dog
files:
- pict-rs-linux-arm64v8
checksum:
- sha256
- sha512
trigger:
event:
- tag
@ -282,6 +308,7 @@ steps:
- cargo build --target=$TARGET --release
- $TOOL-strip target/$TARGET/release/pict-rs
- cp target/$TARGET/release/pict-rs .
- cp pict-rs pict-rs-linux-arm32v7
- name: push
image: plugins/docker:20
@ -297,6 +324,18 @@ steps:
- REPO_ARCH=arm32v7
- TARGET_ARCH=armv7-unknown-linux-musleabifh
- name: publish
image: plugins/gitea-release:1
settings:
api_key:
from_secret: gitea_token
base_url: https://git.asonix.dog
files:
- pict-rs-linux-arm32v7
checksum:
- sha256
- sha512
trigger:
event:
- tag