From 6a12ce7d0f9636a3fcdd417374a325fb8db710b2 Mon Sep 17 00:00:00 2001 From: Pierre Tachoire Date: Mon, 11 May 2026 18:18:21 +0200 Subject: [PATCH] ci: invalidate cloudfront cache after build --- .github/workflows/release-agent.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/release-agent.yml b/.github/workflows/release-agent.yml index 89d85b8a..eef29bd5 100644 --- a/.github/workflows/release-agent.yml +++ b/.github/workflows/release-agent.yml @@ -5,6 +5,7 @@ env: AWS_SECRET_ACCESS_KEY: ${{ secrets.NIGHTLY_BUILD_AWS_SECRET_ACCESS_KEY }} AWS_BUCKET: ${{ vars.NIGHTLY_BUILD_AWS_BUCKET }} AWS_REGION: ${{ vars.NIGHTLY_BUILD_AWS_REGION }} + AWS_CLOUDFRONT_DISTRIBUTION_ID: 'E2LP2HUMLR5GQD' VERSION_FLAG: '-Dversion=agent-nightly' @@ -101,3 +102,12 @@ jobs: - name: upload on s3 run: | aws s3 cp --storage-class=GLACIER_IR lightpanda-${{ env.ARCH }}-${{ env.OS }} s3://lpd-nightly-build/agent-nightly/lightpanda-agent-${{ env.ARCH }}-${{ env.OS }} + + invalidate-cloudfront: + needs: [build-linux, build-macos] + runs-on: ubuntu-22.04 + timeout-minutes: 5 + steps: + - name: cloudfront cache invalidation + run: | + aws cloudfront create-invalidation --distribution-id ${{ env.AWS_CLOUDFRONT_DISTRIBUTION_ID }} --paths "/agent-nightly/*"