From eb5249725310eb44eada0856fb8f37213d10770c Mon Sep 17 00:00:00 2001 From: Harry Date: Thu, 26 Sep 2024 11:40:46 -0700 Subject: [PATCH] Update variable name for java ecr build --- .github/workflows/java-sample-app-ecr-deploy.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/java-sample-app-ecr-deploy.yml b/.github/workflows/java-sample-app-ecr-deploy.yml index c9822e2bb..ad15d7908 100644 --- a/.github/workflows/java-sample-app-ecr-deploy.yml +++ b/.github/workflows/java-sample-app-ecr-deploy.yml @@ -8,6 +8,7 @@ name: Sample App Deployment - Java ECR on: workflow_dispatch: # be able to run the workflow on demand + push: permissions: id-token: write @@ -54,7 +55,7 @@ jobs: - name: Build and Upload Main Service Image working-directory: sample-apps/java/springboot-main-service run: | - sed -i 's#"{{ECR_IMAGE_URI}}"#"${{ env.E2E_TEST_ACCOUNT_ID }}.dkr.ecr.us-east-1.amazonaws.com/${{ env.JAVA_MAIN_SAMPLE_APP_IMAGE }}:v11"#g' build.gradle.kts + sed -i 's#"{{ECR_IMAGE_URI}}"#"${{ env.ACCOUNT_ID }}.dkr.ecr.us-east-1.amazonaws.com/${{ env.JAVA_MAIN_SAMPLE_APP_IMAGE }}:v11"#g' build.gradle.kts gradle jib -P javaVersion=11 java-v11-remote: @@ -93,7 +94,7 @@ jobs: - name: Build and Upload Remote Service Image working-directory: sample-apps/java/springboot-remote-service run: | - sed -i 's#"{{ECR_IMAGE_URI}}"#"${{ env.E2E_TEST_ACCOUNT_ID }}.dkr.ecr.us-east-1.amazonaws.com/${{ env.JAVA_REMOTE_SAMPLE_APP_IMAGE }}:v11"#g' build.gradle.kts + sed -i 's#"{{ECR_IMAGE_URI}}"#"${{ env.ACCOUNT_ID }}.dkr.ecr.us-east-1.amazonaws.com/${{ env.JAVA_REMOTE_SAMPLE_APP_IMAGE }}:v11"#g' build.gradle.kts gradle jib -P javaVersion=11 java-main: