Skip to content

Commit

Permalink
Remove from the bucket workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
BoykoAlex committed Dec 17, 2024
1 parent 7a83c07 commit 6decc62
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/remove-from-r2-bucket.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Remove from the Location in the Bucket

# configure manual trigger
on:
workflow_dispatch:

env:
AWS_ACCESS_KEY_ID: ${{ secrets.CDN_S3_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.CDN_S3_SECRET_KEY }}
AWS_DEFAULT_REGION: us-east-1
AWS_ENDPOINT_URL_S3: ${{ secrets.CDN_S3_ENDPOINT }}
AWS_S3_BUCKET: ${{ secrets.CDN_BUCKET }}/spring-tools
DOWNLOAD_URL_ROOT: https://cdn.spring.io/spring-tools
CDN_BUCKET: ${{ secrets.CDN_BUCKET }}

jobs:
cleanup:
runs-on: ubuntu-latest
steps:
- name: Remove
run: |
aws s3 mv s3://$AWS_S3_BUCKET/exes-to-sign ./exes --recursive --exclude "*" --include "*.exe" --exclude "*/*"

0 comments on commit 6decc62

Please sign in to comment.