]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
don't wait for invalidation to finish before continuing
authormilzi234 <fla@synapps.de>
Tue, 18 Feb 2025 08:25:49 +0000 (09:25 +0100)
committermilzi234 <fla@synapps.de>
Tue, 18 Feb 2025 08:40:07 +0000 (09:40 +0100)
.github/workflows/documentation.yml

index 911165b24c2bbb2872c342eaee2532d19539f698..b216bd508f991523a96abeb89dff25066b6a3894 100644 (file)
@@ -290,11 +290,12 @@ jobs:
             # Invalidate CloudFront cache for DNSdist
             aws cloudfront create-invalidation \
               --distribution-id $AWS_CLOUDFRONT_DISTRIBUTION_ID_DNSDIST \
-              --paths "/*"
-                      fi
-                      if [ -n "$AWS_CLOUDFRONT_DISTRIBUTION_ID_DOCS" ]; then
-                        tar -xf artifacts/recursor-html-docs-${{needs.build-docs.outputs.pdns_version}}/rec-html-docs.tar
-                        cp artifacts/PowerDNS-Recursor-${{needs.build-docs.outputs.pdns_version}}.pdf/PowerDNS-Recursor.pdf rec-html-docs/
+              --paths "/*" \
+              --no-wait
+          fi
+          if [ -n "$AWS_CLOUDFRONT_DISTRIBUTION_ID_DOCS" ]; then
+            tar -xf artifacts/recursor-html-docs-${{needs.build-docs.outputs.pdns_version}}/rec-html-docs.tar
+            cp artifacts/PowerDNS-Recursor-${{needs.build-docs.outputs.pdns_version}}.pdf/PowerDNS-Recursor.pdf rec-html-docs/
             rclone copy rec-html-docs/ docs-s3:$AWS_S3_BUCKET_DOCS/docs.powerdns.com/recursor/
 
             tar -xf artifacts/authoritative-html-docs-${{needs.build-docs.outputs.pdns_version}}/auth-html-docs.tar
@@ -307,5 +308,11 @@ jobs:
             # Invalidate CloudFront cache for docs.powerdns.com
             aws cloudfront create-invalidation \
               --distribution-id $AWS_CLOUDFRONT_DISTRIBUTION_ID_DOCS \
-              --paths "/*"
-                      fi
+              --paths "/*" \
+              --no-wait
+          fi
+      # Cleanup credentials
+      - name: Cleanup rclone config
+        if: always()
+        run: |
+          rm -f ~/.config/rclone/rclone.conf