|
86 | 86 | role-to-assume: arn:aws:iam::${{ env.ACCOUNT_ID }}:role/${{ env.E2E_TEST_ROLE_NAME }}
|
87 | 87 | aws-region: ${{ matrix.aws-region }}
|
88 | 88 |
|
89 |
| - - name: Build and Upload Main Jar |
| 89 | + - name: Build and Upload Remote Jar |
90 | 90 | working-directory: sample-apps/java/springboot-remote-service
|
91 | 91 | run: |
|
92 | 92 | gradle build -P javaVersion=11
|
@@ -206,3 +206,40 @@ jobs:
|
206 | 206 | gradle build
|
207 | 207 | gradle createLambdaZip
|
208 | 208 | aws s3api put-object --bucket aws-appsignals-sample-app-prod-${{ matrix.aws-region }} --body ./build/distributions/lambda-function.zip --key java-lambda-function.zip
|
| 209 | +
|
| 210 | + java-v11-adaptive-sampling: |
| 211 | + runs-on: ubuntu-latest |
| 212 | + steps: |
| 213 | + - uses: actions/checkout@v4 |
| 214 | + with: |
| 215 | + fetch-depth: 0 |
| 216 | + |
| 217 | + - name: Configure AWS Credentials |
| 218 | + uses: aws-actions/configure-aws-credentials@v4 |
| 219 | + with: |
| 220 | + role-to-assume: arn:aws:iam::${{ env.E2E_TEST_ACCOUNT_ID }}:role/${{ env.E2E_TEST_ROLE_NAME }} |
| 221 | + aws-region: us-east-1 |
| 222 | + |
| 223 | + - name: Retrieve account |
| 224 | + uses: aws-actions/aws-secretsmanager-get-secrets@v1 |
| 225 | + with: |
| 226 | + secret-ids: |
| 227 | + ACCOUNT_ID, adaptive-sampling-region-account/prod-us-west-2 |
| 228 | + |
| 229 | + - name: Configure AWS Credentials |
| 230 | + uses: aws-actions/configure-aws-credentials@v4 |
| 231 | + with: |
| 232 | + role-to-assume: arn:aws:iam::${{ env.ACCOUNT_ID }}:role/${{ env.E2E_TEST_ROLE_NAME }} |
| 233 | + aws-region: us-west-2 |
| 234 | + |
| 235 | + - name: Build and Upload Main JAR |
| 236 | + working-directory: sample-apps/java/springboot-main-service |
| 237 | + run: | |
| 238 | + gradle build -P javaVersion=11 |
| 239 | + aws s3api put-object --bucket aws-appsignals-sample-app-prod-us-west-2-adap --body ./build/libs/springboot-*-SNAPSHOT.jar --key java-main-service-v11.jar |
| 240 | +
|
| 241 | + - name: Build and Upload Remote JAR |
| 242 | + working-directory: sample-apps/java/springboot-remote-service |
| 243 | + run: | |
| 244 | + gradle build -P javaVersion=11 |
| 245 | + aws s3api put-object --bucket aws-appsignals-sample-app-prod-us-west-2-adap --body build/libs/springboot-remote-service-*-SNAPSHOT.jar --key java-remote-service-v11.jar |
0 commit comments