Skip to content

replace ContainerAddress with String, publish returns fully qualified ref - #3443

Merged
vito merged 3 commits into
dagger:mainfrom
vito:string-container-address
Oct 19, 2022
Merged

vito merged 3 commits into
dagger:mainfrom
vito:string-container-address

Conversation

@vito

@vito vito commented Oct 19, 2022

Copy link
Copy Markdown
Contributor

fixes #3257

Comment thread core/schema/container.graphqls Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm a bit worried about the change to Boolean, at least from a dagger-classic perspective. I'll be needing the full ref for the pushed image (including the image digest) in order to get full compatibility. I can also imagine that it could be important to have that for pipelines that want to push the container, then ensure that the same container ref is used further down the line for deployment.

I'm not sure what a better return type would be... but just want to name it before totally settle on a API.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oh good catch! This was actually busted before, then, because it would always just return the ref that was given, which felt a little pointless. I'll change it to String and add a test that it returns a fully qualified ref with the digest and everything. 👍

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Latest changes re-introduce this and test that we get a digest back.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good, @vito!

@vito vito changed the title replace ContainerAddress with regular String replace ContainerAddress with String, publish returns fully qualified ref Oct 19, 2022
@vito
vito force-pushed the string-container-address branch from bd52855 to 3b6a059 Compare October 19, 2022 22:35
@vito
vito force-pushed the string-container-address branch from 3b6a059 to 910fba4 Compare October 19, 2022 22:54

@jlongtine jlongtine left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@vito
vito merged commit 311a120 into dagger:main Oct 19, 2022
@vito
vito deleted the string-container-address branch October 19, 2022 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace ContainerAddress with a regular string

2 participants