Update github/codeql-action requirement to 57eebf61a2246ab60a0c2f5a85766db783ad3553 #1274
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Infra: Image Testing: Delete" | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| types: ['unlabeled', 'closed'] | |
| jobs: | |
| remove: | |
| if: ${{ github.event.label.name == 'status/image_testing' || ( github.event.action == 'closed' && (contains(github.event.pull_request.labels, 'status/image_testing'))) }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: get branch name | |
| id: extract_branch | |
| run: | | |
| echo | |
| tag='${{ github.event.pull_request.number }}' | |
| echo "tag=${tag}" >> $GITHUB_OUTPUT | |
| - name: Configure AWS credentials for Kafka-UI account | |
| uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # infered from @v4 | |
| with: | |
| aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
| aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
| aws-region: us-east-1 | |
| - name: Login to Amazon ECR | |
| id: login-ecr | |
| uses: aws-actions/amazon-ecr-login@9238dd443b7a5941caf19ffbe68be34d4dbd61df # infered from @v4 | |
| with: | |
| registry-type: 'public' | |
| - name: Remove from ECR | |
| id: remove_from_ecr | |
| run: | | |
| aws ecr-public batch-delete-image \ | |
| --repository-name kafka-ui-custom-build \ | |
| --image-ids imageTag=${{ steps.extract_branch.outputs.tag }} \ | |
| --region us-east-1 |