-
Notifications
You must be signed in to change notification settings - Fork 151
feat: remove linting/gen from dockerfile #1334
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
feat: remove linting/gen from dockerfile #1334
Conversation
Signed-off-by: Alessio Pragliola <[email protected]>
ef3a77d to
843a353
Compare
Signed-off-by: Alessio Pragliola <[email protected]>
Signed-off-by: Alessio Pragliola <[email protected]>
Signed-off-by: Alessio Pragliola <[email protected]>
Signed-off-by: Alessio Pragliola <[email protected]>
pboyd
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
Seems like this should speed up our local image builds too.
rareddy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
Good work @Al-Pragliola!
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rareddy The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
follow-up to kubeflow#1334 The build-and-push-image workflow was incorrectly calling the prepare.yml as a step action instead of using it as a reusable workflow. This caused the error "Can't find 'action.yml', 'action.yaml' or 'Dockerfile' under .github/workflows/prepare.yml". Example: https://github.com/kubeflow/model-registry/actions/runs/16379707719/job/46288348593 The prepare job is already correctly called at the top of the jobs section, so the duplicate call in the steps was unnecessary and likely the cause of the failure. Signed-off-by: Matteo Mortari <[email protected]>
…ml (#1336) follow-up to #1334 The build-and-push-image workflow was incorrectly calling the prepare.yml as a step action instead of using it as a reusable workflow. This caused the error "Can't find 'action.yml', 'action.yaml' or 'Dockerfile' under .github/workflows/prepare.yml". Example: https://github.com/kubeflow/model-registry/actions/runs/16379707719/job/46288348593 The prepare job is already correctly called at the top of the jobs section, so the duplicate call in the steps was unnecessary and likely the cause of the failure. Signed-off-by: Matteo Mortari <[email protected]>
* feat: remove linting/gen from dockerfile Signed-off-by: Alessio Pragliola <[email protected]> * fix: missing checkout in action Signed-off-by: Alessio Pragliola <[email protected]> * fix: change prepare step Signed-off-by: Alessio Pragliola <[email protected]> * feat: make test target atomic Signed-off-by: Alessio Pragliola <[email protected]> * feat: make the jobs depend on prepare Signed-off-by: Alessio Pragliola <[email protected]> --------- Signed-off-by: Alessio Pragliola <[email protected]> Signed-off-by: Taj010 <[email protected]>
…ml (kubeflow#1336) follow-up to kubeflow#1334 The build-and-push-image workflow was incorrectly calling the prepare.yml as a step action instead of using it as a reusable workflow. This caused the error "Can't find 'action.yml', 'action.yaml' or 'Dockerfile' under .github/workflows/prepare.yml". Example: https://github.com/kubeflow/model-registry/actions/runs/16379707719/job/46288348593 The prepare job is already correctly called at the top of the jobs section, so the duplicate call in the steps was unnecessary and likely the cause of the failure. Signed-off-by: Matteo Mortari <[email protected]> Signed-off-by: Taj010 <[email protected]>
* feat: remove linting/gen from dockerfile Signed-off-by: Alessio Pragliola <[email protected]> * fix: missing checkout in action Signed-off-by: Alessio Pragliola <[email protected]> * fix: change prepare step Signed-off-by: Alessio Pragliola <[email protected]> * feat: make test target atomic Signed-off-by: Alessio Pragliola <[email protected]> * feat: make the jobs depend on prepare Signed-off-by: Alessio Pragliola <[email protected]> --------- Signed-off-by: Alessio Pragliola <[email protected]> Signed-off-by: Taj010 <[email protected]>
…ml (kubeflow#1336) follow-up to kubeflow#1334 The build-and-push-image workflow was incorrectly calling the prepare.yml as a step action instead of using it as a reusable workflow. This caused the error "Can't find 'action.yml', 'action.yaml' or 'Dockerfile' under .github/workflows/prepare.yml". Example: https://github.com/kubeflow/model-registry/actions/runs/16379707719/job/46288348593 The prepare job is already correctly called at the top of the jobs section, so the duplicate call in the steps was unnecessary and likely the cause of the failure. Signed-off-by: Matteo Mortari <[email protected]> Signed-off-by: Taj010 <[email protected]>
Description
In this PR I move the linting/gen from the Dockerfile to the Github Action named prepare and make both the build workflow and the build and push workflow depend on it so every other Job that run docker build takes ~1minute instead of 5 and in general there's much less repetition in the actions
How Has This Been Tested?
run in CI
Merge criteria:
DCOcheck)ok-to-testhas been added to the PR.