GHA: Test Akamai purge cache
This commit is contained in:
28
.github/workflows/akamai-purge-cache.yml
vendored
Normal file
28
.github/workflows/akamai-purge-cache.yml
vendored
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
name: Akamai Purge Cache for Directory
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
path:
|
||||||
|
description: Path in S3 bucket
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
|
||||||
|
eclipse-distro-build:
|
||||||
|
runs-on: self-hosted
|
||||||
|
steps:
|
||||||
|
- name: Cloudgate S3 Configuration
|
||||||
|
uses: aws-actions/configure-aws-credentials@010d0da01d0b5a38af31e9c3470dbfdabdecca3a
|
||||||
|
with:
|
||||||
|
aws-access-key-id: ${{ secrets.TOOLS_CLOUDGATE_ACCESS_KEY }}
|
||||||
|
aws-secret-access-key: ${{ secrets.TOOLS_CLOUDGATE_SECRET_KEY }}
|
||||||
|
role-to-assume: arn:aws:iam::${{ secrets.TOOLS_CLOUDGATE_ACCOUNT_ID }}:role/${{ secrets.TOOLS_CLOUDGATE_USER }}
|
||||||
|
role-session-name: ${{ github.run_id }}
|
||||||
|
aws-region: us-east-1
|
||||||
|
role-duration-seconds: 900
|
||||||
|
role-skip-session-tagging: true
|
||||||
|
- name: Akamai Cache Purge via CLI
|
||||||
|
run: |
|
||||||
|
aws s3 ls s3://tools-spring-io/${{ inputs.path }} --recursive | sed -e 's/^/https:\/\/cdn.spring.io\/spring-tools\//'
|
||||||
@@ -6,9 +6,9 @@ concurrency:
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
# push:
|
||||||
branches:
|
# branches:
|
||||||
- 'main'
|
# - 'main'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
eclipse-ls-extensions:
|
eclipse-ls-extensions:
|
||||||
|
|||||||
Reference in New Issue
Block a user