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

[v0.11] Adapt qpext workflow for OpenDataHub #68

Conversation

israel-hdez
Copy link

What this PR does / why we need it:

This adapts the Queue Proxy Extension Docker Publisher workflow to build an publish a container image to Quay.

Related #15

Feature/Issue validation/testing:

A test run can be found here: https://github.com/israel-hdez/kserve/actions/runs/5957673480

Release note:

NONE

Signed-off-by: Edgar Hernández <23639005+israel-hdez@users.noreply.github.com>
@openshift-ci openshift-ci bot requested review from Jooho and Xaenalt August 24, 2023 17:25
@openshift-ci
Copy link

openshift-ci bot commented Aug 24, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: israel-hdez

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@@ -5,6 +5,7 @@ on:
# Publish `master` as Docker `latest` image.
branches:
- master
Copy link

Choose a reason for hiding this comment

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

is this still needed? This PR is for the release branch.

Copy link
Author

Choose a reason for hiding this comment

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

It is not needed here. Although, I think, it also doesn't hurt.

If it is noisy, I can remove it.

@@ -74,9 +76,14 @@ jobs:

# Use Docker `latest` tag convention
[ "$VERSION" == "master" ] && VERSION=latest
[[ "$VERSION" =~ ^release- ]] && VERSION=$(echo $VERSION | sed 's/^release-//')-latest
Copy link

Choose a reason for hiding this comment

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

so 0.11 release branch will use 0.11-latest ?
I think retag it to 2 tags: 0.11-$COMMIT_SHA and 0.11 . then quay.io will show these 2 images are the same.
WDYT?

Copy link
Author

Choose a reason for hiding this comment

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

so 0.11 release branch will use 0.11-latest ?

Yes.

I think retag it to 2 tags: 0.11-$COMMIT_SHA and 0.11 . then quay.io will show these 2 images are the same.

Would it be useful? I don't see a reason for accumulating images.

Copy link
Member

Choose a reason for hiding this comment

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

The image manifest on quay should include git ref if we don't include it in the image tag itself, but it's definitely easier for lookup purposes to do commit sha

Copy link
Author

Choose a reason for hiding this comment

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

The image manifest on quay should include git ref if we don't include it in the image tag itself, but it's definitely easier for lookup purposes to do commit sha

The -latest suffix is the typical docker nomenclature. I'd think it maps "naturally". The v0.11-latest tag would map to release-v0.11 git ref.

If we strictly want a git-ref, I can create both the git-ref tag and the docker-friendly tag: release-v0.11 and v0.11-latest.

But, then, I'm still not sure about the tag carrying the SHA, as that would mean accumulating images.

Copy link
Author

@israel-hdez israel-hdez Aug 24, 2023

Choose a reason for hiding this comment

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

I'm still thinking on the tag with the SHA.

Do we really need it? Being ODH, I don't see a hard req for it.

@Xaenalt
Copy link
Member

Xaenalt commented Sep 5, 2023

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Sep 5, 2023
@openshift-merge-robot openshift-merge-robot merged commit 61b4bc0 into opendatahub-io:release-v0.11 Sep 5, 2023
17 checks passed
@israel-hdez israel-hdez deleted the v011-qpext-action-build branch September 5, 2023 16:54
Jooho pushed a commit to Jooho/kserve that referenced this pull request Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants