]> git.mxchange.org Git - friendica.git/commitdiff
Add GPG sign
authorPhilipp <admin@philipp.info>
Wed, 8 Sep 2021 19:19:37 +0000 (21:19 +0200)
committerPhilipp <admin@philipp.info>
Wed, 8 Sep 2021 20:08:59 +0000 (22:08 +0200)
.drone.yml

index 80d4e3287b4eb02fae188e230022715ce9273272..cf02780417976af7fa90267c46c012dc0489a551 100644 (file)
@@ -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: