From 04b2eb41cd67950c2247d6795e6a66e7761747a1 Mon Sep 17 00:00:00 2001 From: Philipp Date: Wed, 8 Sep 2021 21:19:37 +0200 Subject: [PATCH] Add GPG sign --- .drone.yml | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 80d4e3287b..cf02780417 100644 --- a/.drone.yml +++ b/.drone.yml @@ -398,6 +398,18 @@ steps: - # output the sha256 sum for checking - cat "$ARTIFACT.sum256" - sha256sum "$ARTIFACT" + - name: Sign artifacts + image: plugins/gpgsign + settings: + key: + from_secret: gpg_key + passphrase: + from_secret: gpg_password + files: + - build/* + exclude: + - build/*.sum256 + detach_sign: true - name: Upload artifacts image: alpine environment: @@ -479,8 +491,6 @@ steps: - apt-get install bzip2 - mkdir ./build - export VERSION="$(cat VERSION)" - - mkdir ./build - - export VERSION="$(cat VERSION)" - # Create artifact - export RELEASE="friendica-full-$VERSION" - export ARTIFACT="$RELEASE.tar.gz" @@ -496,6 +506,18 @@ steps: - # output the sha256 sum for checking - cat "$ARTIFACT.sum256" - sha256sum "$ARTIFACT" + - name: Sign artifacts + image: plugins/gpgsign + settings: + key: + from_secret: gpg_key + passphrase: + from_secret: gpg_password + files: + - build/* + exclude: + - build/*.sum256 + detach_sign: true - name: Upload artifacts image: alpine environment: