Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AWS] Add image digest parameters #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jsravn
Copy link

@jsravn jsravn commented Jan 17, 2023

This allows setting the exact image hash to use. This is useful when using mutable tags like "latest" (used in our long running tests).

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 17, 2023
This allows setting the exact image hash to use. This is useful when
using mutable tags like "latest" (used in our long running tests).
@jsravn jsravn force-pushed the add-image-digests branch from cdfbcf7 to 887db57 Compare January 17, 2023 10:54
@@ -844,7 +858,7 @@ Resources:
!If [IsAWSLogDriver, "coreapp", !Ref "AWS::NoValue"]
- Name: wa-web
Image:
!Join ["", [!Ref WAEntContRegistry, "/web:", !Ref WAEntContTag]]
!Join ["", [!Ref WAEntContRegistry, "/web:", !Ref WAEntContTag, !Ref WAEntWebImageDigest]]
Copy link
Member

@nemani nemani Mar 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docker image ref is <registry>/<name>:<tag>@<digest>

so this should be !Join ["", [!Ref WAEntContRegistry, "/web:", !Ref WAEntContTag, "@", !Ref WAEntWebImageDigest]]

And so on for other changes.

But i see that this is an optional argument so maybe we should have a comment which says that digest should always be in the form of @sha:.... so that people using this wont get confused.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants