Resolves ECR_CACHE_URL from env or AWS SSM#4896
Merged
myurasov-nv merged 11 commits intoisaac-sim:developfrom Mar 10, 2026
Merged
Resolves ECR_CACHE_URL from env or AWS SSM#4896myurasov-nv merged 11 commits intoisaac-sim:developfrom
myurasov-nv merged 11 commits intoisaac-sim:developfrom
Conversation
c2f4d92 to
711a227
Compare
b8ed152 to
402a304
Compare
kellyguo11
approved these changes
Mar 10, 2026
Contributor
Greptile SummaryThis PR replaces the static Key changes:
Confidence Score: 4/5
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A([Start: ECR Build-Push-Pull Action]) --> B{ecr-url input\nset?}
B -- Yes --> G[Use INPUT_ECR_URL]
B -- No --> C{ECR_CACHE_URL\nenv var set?}
C -- Yes --> G
C -- No --> D[Fetch IMDSv2 token\nvia PUT /latest/api/token]
D --> E{Instance ID\nresolved from IMDS?}
E -- No --> F[🟠 Log: Not on EC2 / IMDS unavailable]
F --> H
E -- Yes --> SSM[aws ssm get-parameter\n/github-runner/instance-id/ecr-cache-url]
SSM -- Found --> G
SSM -- Not Found --> H[🟠 ECR URL cannot be resolved\nBuild locally]
G --> V{Validate URL format\nExtract AWS_REGION via sed}
V -- Invalid --> ERR[🔴 Exit 1: Bad ECR URL format]
V -- Valid --> L[ECR Login via\naws ecr get-login-password]
L --> P{docker pull ECR image\nTag already exists?}
P -- Yes --> EXIT0[🟢 Tag local image\nexit 0 — skip build]
P -- No --> BUILD[docker buildx build\nwith ECR cache-from / cache-to]
H --> BUILDLOCAL[docker buildx build\nno ECR cache]
BUILD --> PUSH[docker push ECR image]
PUSH --> DONE([🟢 Image ready])
BUILDLOCAL --> DONE
EXIT0 --> DONE
Last reviewed commit: aacdf2a |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Use env vars available on the runner or AWS SSM store to retrieve ECR_CACHE_URL to be flexible with ECR location. Allows for ECR settings to be configured without code change from AWS console.
Checklist
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfileCONTRIBUTORS.mdor my name already exists there