|
4 | 4 | name: Sample App Deployment - Python S3 |
5 | 5 | on: |
6 | 6 | workflow_dispatch: # be able to run the workflow on demand |
| 7 | + push: |
| 8 | + branches: |
| 9 | + - python-genesis-app-metrics-fix |
7 | 10 |
|
8 | 11 | permissions: |
9 | 12 | id-token: write |
@@ -46,24 +49,40 @@ jobs: |
46 | 49 | role-to-assume: arn:aws:iam::${{ env.ACCOUNT_ID }}:role/${{ secrets.E2E_TEST_ROLE_ARN }} |
47 | 50 | aws-region: ${{ matrix.aws-region }} |
48 | 51 |
|
49 | | - - name: Build Sample App Zip |
50 | | - working-directory: sample-apps/python |
51 | | - run: zip -r python-sample-app.zip . |
| 52 | + # - name: Build Sample App Zip |
| 53 | + # working-directory: sample-apps/python |
| 54 | + # run: zip -r python-sample-app.zip . |
52 | 55 |
|
53 | | - - name: Upload to S3 |
54 | | - working-directory: sample-apps/python |
55 | | - run: aws s3api put-object --bucket ${{ secrets.APP_SIGNALS_E2E_EC2_JAR }}-prod-${{ matrix.aws-region }} --body ./python-sample-app.zip --key python-sample-app.zip |
| 56 | + # - name: Upload to S3 |
| 57 | + # working-directory: sample-apps/python |
| 58 | + # run: aws s3api put-object --bucket ${{ secrets.APP_SIGNALS_E2E_EC2_JAR }}-prod-${{ matrix.aws-region }} --body ./python-sample-app.zip --key python-sample-app.zip |
56 | 59 |
|
57 | | - - name: Build Lambda Sample App |
58 | | - uses: actions/checkout@v4 |
59 | | - with: |
60 | | - repository: 'aws-observability/aws-otel-python-instrumentation' |
61 | | - - name: Build sample lambda function |
62 | | - shell: bash |
63 | | - run: ./package-lambda-function.sh |
64 | | - working-directory: lambda-layer/sample-apps |
65 | | - |
66 | | - - name: Upload to Lambda Sample App to S3 |
67 | | - working-directory: lambda-layer/sample-apps |
68 | | - run: aws s3api put-object --bucket ${{ secrets.APP_SIGNALS_E2E_EC2_JAR }}-prod-${{ matrix.aws-region }} --body ./build/function.zip --key pyfunction.zip |
| 60 | + # - name: Build Lambda Sample App |
| 61 | + # uses: actions/checkout@v4 |
| 62 | + # with: |
| 63 | + # repository: 'aws-observability/aws-otel-python-instrumentation' |
| 64 | + # - name: Build sample lambda function |
| 65 | + # shell: bash |
| 66 | + # run: ./package-lambda-function.sh |
| 67 | + # working-directory: lambda-layer/sample-apps |
| 68 | + |
| 69 | + # - name: Upload to Lambda Sample App to S3 |
| 70 | + # working-directory: lambda-layer/sample-apps |
| 71 | + # run: aws s3api put-object --bucket ${{ secrets.APP_SIGNALS_E2E_EC2_JAR }}-prod-${{ matrix.aws-region }} --body ./build/function.zip --key pyfunction.zip |
| 72 | + |
| 73 | + # - name: Build Sample App Zip |
| 74 | + # working-directory: sample-apps/python |
| 75 | + # run: zip -r python-sample-app.zip . |
| 76 | + |
| 77 | + # - name: Upload to S3 |
| 78 | + # working-directory: sample-apps/python |
| 79 | + # run: aws s3api put-object --bucket ${{ secrets.APP_SIGNALS_E2E_EC2_JAR }}-prod-${{ matrix.aws-region }} --body ./python-sample-app.zip --key python-sample-app.zip |
| 80 | + |
| 81 | + - name: Build Gen AI Sample App Zip |
| 82 | + working-directory: sample-apps/python-gen-ai |
| 83 | + run: zip -r python-gen-ai-sample-app.zip . |
| 84 | + |
| 85 | + - name: Upload Gen AI Sample App to S3 |
| 86 | + working-directory: sample-apps/python-gen-ai |
| 87 | + run: aws s3api put-object --bucket ${{ secrets.APP_SIGNALS_E2E_EC2_JAR }}-prod-${{ matrix.aws-region }} --body ./python-gen-ai-sample-app.zip --key python-gen-ai-sample-app.zip |
69 | 88 |
|
0 commit comments