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

chore(release): Add craft publish workflow #238

Merged
merged 4 commits into from
Jan 29, 2025
Merged

chore(release): Add craft publish workflow #238

merged 4 commits into from
Jan 29, 2025

Conversation

andreiborza
Copy link
Member

@andreiborza andreiborza commented Jan 29, 2025

Previously, any push to master builts and uploads the action's underlying docker image to the GitHub registry under the latest tag. That meant, regardless of version specified in a user's workflow they'd get the latest change.

The introduction of craft allows us to push versioned images to the registry and associate a release's action with that version.

At the moment, this workflow does not incorporate tags for major (e.g. v1) and major.minor (e.g. v1.2). The ability to publish several git tags will probably have to be added to craft or publish directly.

Closes: #129, #233

Previously, any push to `master` built and uploaded the action's underlying
docker image to the GitHub registry under the `latest` tag. That meant,
regardless of version specified in a user's workflow they'd get the latest
change.

The introduction of craft allows us to push versioned images to the registry and
associate a release's action with that version.

At the moment, this workflow does not incorporate tags for major (e.g. `v1`) and
major.minor (e.g. `v1.2`). The ability to publish several git tags will probably
have to be added to craft or publish directly.

Closes: #129
@andreiborza andreiborza requested a review from Lms24 January 29, 2025 11:56
Copy link
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

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

This sounds reasonable to me but maybe you can walk me through the changes, just to be sure I understand things correctly?

Also would you mind updating the PR description as to what images we'll publish via craft with this change? As far as I understand it'd be :latest and the full version (:1.9.0) but I might be missing something.

.github/workflows/release.yml Outdated Show resolved Hide resolved
CHANGELOG.md Show resolved Hide resolved
action.yml Outdated Show resolved Hide resolved
Copy link
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

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

Discussed some concerns offline; LGTM!

andreiborza and others added 2 commits January 29, 2025 13:30
Co-authored-by: Lukas Stracke <[email protected]>
@andreiborza andreiborza merged commit 5e6fd0e into master Jan 29, 2025
9 checks passed
@andreiborza andreiborza deleted the ab/craft branch January 29, 2025 12:39
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.

Only v1 release to point to latest Docker image
2 participants