feat(core): support ssh build arg in DockerImageAsset#26356
feat(core): support ssh build arg in DockerImageAsset#26356mergify[bot] merged 30 commits intoaws:mainfrom
Conversation
aws-cdk-automation
left a comment
There was a problem hiding this comment.
The pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.
A comment requesting an exemption should contain the text Exemption Request. Additionally, if clarification is needed add Clarification Request to a comment.
packages/aws-cdk-lib/cloud-assembly-schema/lib/assets/docker-image-asset.ts
Outdated
Show resolved
Hide resolved
|
This PR cannot be merged because it has conflicts. Please resolve them. The PR will be considered stale and closed if it remains in an unmergeable state. |
1 similar comment
|
This PR cannot be merged because it has conflicts. Please resolve them. The PR will be considered stale and closed if it remains in an unmergeable state. |
There was a problem hiding this comment.
Please revert the changes to this file.
|
➡️ PR build request submitted to A maintainer must now check the pipeline and add the |
|
e7327cde-b87f-46d6-a42b-f23b5870cf0e |
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
|
@Mergifyio update |
✅ Branch has been successfully updated |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
|
Hello. Just wanted to chime in as I noticed this was pushed, but it looks like the --ssh flag still isn't getting propagated in. The results are below but I believe this section still needs to be changed:
Doesn't seem like we're in buildSsh options and instead are still just leaving it empty from the async build function. It does reference it, but on the debug log output it never appears hence this suspicion:
Local Tests:CDK Library Version 2.91.0 Test App: Dockerfile Partial Debug Output: Notice that "docker build --secret id=SECRET,src=/home/ec2-user/environment/dockerTest/README.md --tag cdkasset-ca115e1fc5a469db02217d34c4e6c89902a04ad19846806664444b229db52144 ." doesn't have the "--ssh" flag still. Manually running "docker build . --ssh default" does go through just fine however as Docker is properly picking up the ssh-agent running locally: |
|
Thanks for the catch! I have a PR for the fix here |
Adds support for the docker build --ssh flag for specifying ssh agent socket or ssh keys for ecr DockerImageAsset
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license