You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2021/05/21 19:05:10 UTC

[libcloud] branch trunk updated: Update nightly workflow to fail if bucket / pricing file permissions are not correct.

This is an automated email from the ASF dual-hosted git repository.

tomaz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git


The following commit(s) were added to refs/heads/trunk by this push:
     new ea364c5  Update nightly workflow to fail if bucket / pricing file permissions are not correct.
ea364c5 is described below

commit ea364c58cd954d6b076c4e30bb283f33381a1246
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Fri May 21 21:04:21 2021 +0200

    Update nightly workflow to fail if bucket / pricing file permissions are
    not correct.
---
 .github/workflows/publish_pricing_to_s3.yml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/.github/workflows/publish_pricing_to_s3.yml b/.github/workflows/publish_pricing_to_s3.yml
index 1f079a0..b294908 100644
--- a/.github/workflows/publish_pricing_to_s3.yml
+++ b/.github/workflows/publish_pricing_to_s3.yml
@@ -41,3 +41,10 @@ jobs:
           AWS_ACCESS_KEY_SECRET: ${{ secrets.AWS_ACCESS_KEY_SECRET }}
         run: |
           script -e -c "tox -escrape-and-publish-provider-prices"
+
+      - name: Verify files can be downloaded
+        # Verify that the permissions are correct and files can be downloaded publicly
+        run: |
+          curl --fail https://libcloud-pricing-data.s3.amazonaws.com/pricing.json
+          curl --fail https://libcloud-pricing-data.s3.amazonaws.com/pricing.json.sha256
+          curl --fail https://libcloud-pricing-data.s3.amazonaws.com/pricing.json.sha512