Fix linters #1
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: Deploy AWS cleanup Lambda | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - 'aws_cleanup/aws_delete.py' | |
| jobs: | |
| deploy-lambda: | |
| name: Update Lambda function code | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v3 | |
| - name: Configure AWS credentials | |
| uses: aws-actions/configure-aws-credentials@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: Package and deploy Lambda | |
| run: | | |
| cd aws_cleanup | |
| zip lambda_package.zip aws_delete.py | |
| aws lambda update-function-code \ | |
| --function-name telco-ci-aws-cleanup \ | |
| --zip-file fileb://lambda_package.zip |