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 aee6a8c..044acce 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: