]> git.mxchange.org Git - friendica-addons.git/commitdiff
Adapt sha256 generation
authorPhilipp <admin@philipp.info>
Thu, 2 Sep 2021 15:05:40 +0000 (17:05 +0200)
committerPhilipp <admin@philipp.info>
Thu, 2 Sep 2021 15:05:40 +0000 (17:05 +0200)
.drone.yml

index aee6a8ccda5beddb2fee4de987cadcdce0c9fa84..044acce5cd68d1f6fca2dfb77f8ffdb7b6b1279a 100644 (file)
@@ -123,8 +123,12 @@ steps:
         --exclude='**/*/messages.po'
         -cvjf ./build/$ARTIFACT --transform "s,^addon,$RELEASE," addon/
       - # calculate SHA256 checksum
-      - sha256sum ./build/$ARTIFACT > ./build/$ARTIFACT.sha256
-      - ls -lh ./build
+      - cd ./build
+      - sha256sum "$ARTIFACT" > "$ARTIFACT.sha256"
+      - ls -lh
+      - # output the sha256 sum for checking purpose
+      - cat "$ARTIFACT.sha256"
+      - sha256sum "$ARTIFACT"
   - name: Upload artifacts
     image: alpine
     environment:
@@ -211,8 +215,12 @@ steps:
         --exclude='**/*/messages.po'
         -cvjf ./build/$ARTIFACT --transform "s,^addon,$RELEASE," addon/
       - # calculate SHA256 checksum
-      - sha256sum ./build/$ARTIFACT > ./build/$ARTIFACT.sha256
-      - ls -lh ./build
+      - cd ./build
+      - sha256sum "$ARTIFACT" > "$ARTIFACT.sha256"
+      - ls -lh
+      - # output the sha256 sum for checking purpose
+      - cat "$ARTIFACT.sha256"
+      - sha256sum "$ARTIFACT"
   - name: Upload artifacts
     image: alpine
     environment: