-
Notifications
You must be signed in to change notification settings - Fork 54
Github workflow for nightly builds #307
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
Github workflow for nightly builds #307
Conversation
sed -i "s/codeflare-sdk==.*/${{ env.SDK_FILE }}\\\\/" custom-nb-image/Dockerfile | ||
- name: Image Build | ||
run: | | ||
cd custom-nb-image |
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.
You can use working-directory
instead - see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
|
||
on: | ||
workflow_dispatch: | ||
schedule: |
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.
Can you rather use push
event (i.e. https://github.com/project-codeflare/codeflare-operator/blob/main/.github/workflows/operator-image.yml#L6)?
That way the dev
image is refreshed immediately.
e008aba
to
967e122
Compare
@sutaakar Thank you for your comments. I tried to address all of them. @anishasthana @KPostOffice Hello, can you please take a look and merge if possible? |
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.
Otherwise LGTM
run: poetry build | ||
- name: Copy SDK package | ||
run: cp dist/${SDK_FILE} custom-nb-image | ||
- name: Modify Dockerfile to use locally build SDK |
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.
build
-> built
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.
For line 36
sed -i "s/codeflare-sdk==.*/${{ env.SDK_FILE }}\\\\/" custom-nb-image/Dockerfile | ||
- name: Image Build | ||
working-directory: custom-nb-image | ||
run: docker build -t quay.io/${{ env.QUAY_ORGANIZATION }}/notebook:${{ env.IMAGE_TAG }} . |
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.
nit: I'd prefer to use podman here instead of docker, but I won't block the PR on it.
967e122
to
f158fec
Compare
@Maxusmusti |
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Maxusmusti, sutaakar 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 |
Issue link
Closes #291
What changes have been made
New workflow was created. It will run each day and produce nightly image for notebook.
Verification steps
It was tested using my local fork: https://github.com/jiripetrlik/codeflare-sdk/actions/runs/5857794950/job/15880432547
Checks