From b2db4d5ba16be0e2c0b284a0c4deb27e3ccbe6eb Mon Sep 17 00:00:00 2001 From: "Aode (lion)" Date: Sat, 4 Dec 2021 13:24:41 -0600 Subject: [PATCH] drone: add gitea publish --- .drone.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/.drone.yml b/.drone.yml index 978c1ab..44f7f4a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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