Skip to content

Commit

Permalink
Update variable name for java ecr build
Browse files Browse the repository at this point in the history
  • Loading branch information
harrryr committed Sep 26, 2024
1 parent d50fe77 commit eb52497
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/java-sample-app-ecr-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit eb52497

Please sign in to comment.