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

publish 'use' images #69

Merged
merged 14 commits into from
Jan 19, 2024
Merged

publish 'use' images #69

merged 14 commits into from
Jan 19, 2024

Conversation

turadg
Copy link
Member

@turadg turadg commented Jan 16, 2024

closes: #25

Publishes "use" images so that consumers can rely on a certain state of state of the chain. They're published as tags matching the target, like use-upgrade-9. I experimented with having separate images names such as a3p-use-upgrade8 but we agreed it's better to just use tags. They're all visible at https://ghcr.io/agoric/agoric-3-proposals.

This isn't meant to push tags for "use" images out of PR builds. It does for review but once the PR is approved I'll change it to only push from the default branch. That sidesteps the issue of distinguishing use images by branch origin.

This PR has some other cleanup and refactoring along the way. I recommend reviewing by commit.

@turadg turadg force-pushed the 25-publish-use branch 9 times, most recently from f279c15 to d31559a Compare January 18, 2024 18:13
@turadg turadg marked this pull request as ready for review January 18, 2024 18:54
@turadg turadg requested review from mhofman and michaelfig January 18, 2024 18:54
Copy link
Member

@mhofman mhofman left a comment

Choose a reason for hiding this comment

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

I admit I don't fully grok yet how this works. Some preliminary comments and questions.

.github/workflows/ci.yml Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
.github/workflows/ci.yml Show resolved Hide resolved
Comment on lines +115 to +124
- name: Push proposal "use" images
uses: docker/bake-action@v4
Copy link
Member

Choose a reason for hiding this comment

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

I fail to see anywhere how a use image is prefixed with pr-NN- before pushing.

Copy link
Member

Choose a reason for hiding this comment

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

This isn't meant to push tags for "use" images out of PR builds. It does for review but once the PR is approved I'll change it to only push from the default branch. That sidesteps the issue of distinguishing use images by branch origin.

Well that answers my question. If we could figure out prefixing, it might be nice to avoid overriding, at least for the case where we manually trigger a workflow.

Copy link
Member Author

Choose a reason for hiding this comment

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

Agree it "might be nice" . I don't think we need it to deliver #25. Let's tackle if a need presents itself.

@mhofman mhofman self-requested a review January 18, 2024 21:02
Copy link
Member

@michaelfig michaelfig left a comment

Choose a reason for hiding this comment

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

Looks good. Just a few questions, but when you're satisfied with your answers, feel free to merge.

README.md Outdated Show resolved Hide resolved
packages/synthetic-chain/src/cli/build.ts Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
@turadg turadg enabled auto-merge January 19, 2024 20:06
@turadg turadg merged commit 9223d43 into main Jan 19, 2024
3 checks passed
@turadg turadg deleted the 25-publish-use branch January 19, 2024 20:32
This was referenced Jan 29, 2024
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.

build and push a 'use' image for each proposal
3 participants