Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .github/workflows/cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,21 @@ permissions:

env:
DEFAULT_RETENTION_DAYS: "30"
AWSAccount: ${{ secrets.AWS_ACCOUNT_ID }}
AWSRoleName: ${{ secrets.AWS_ROLE_NAME }}
AWSS3Bucket: "nginx-org-staging"

jobs:
cleanup:
runs-on: ubuntu-24.04
if: github.repository == 'nginx/nginx.org'
steps:
- name: Get secrets from Azure
uses: nginx/ci-self-hosted/.github/actions/get-from-vault@0fc1fc087a55f75740cebba008010c812b6d0da2
with:
client-id: ${{secrets.NGINX_ORG_CLIENT_ID}}
tenant-id: ${{secrets.NGINX_ORG_TENANT_ID}}
vault-name: ${{secrets.NGINX_ORG_VAULT_NAME}}
secret-names: "NginxOrgAwsAccountID, NginxOrgAwsRoleName, NginxOrgAwsS3Bucket"
env-names: "AWSAccount, AWSRoleName, AWSS3Bucket"

- name: Configure AWS credentials via OIDC (assume role)
uses: aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a # v4
with:
Expand Down