Skip to content

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

Conversation

jiripetrlik
Copy link
Contributor

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

  • I've made sure the tests are passing.
  • Testing Strategy
    • Unit tests
    • [*] Manual tests
    • Testing is not required for this change

sed -i "s/codeflare-sdk==.*/${{ env.SDK_FILE }}\\\\/" custom-nb-image/Dockerfile
- name: Image Build
run: |
cd custom-nb-image
Copy link
Contributor

Choose a reason for hiding this comment

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


on:
workflow_dispatch:
schedule:
Copy link
Contributor

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.

@jiripetrlik jiripetrlik force-pushed the 291-nightly-image-builds branch 3 times, most recently from e008aba to 967e122 Compare August 16, 2023 08:57
@jiripetrlik
Copy link
Contributor Author

@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?

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 16, 2023
Copy link
Collaborator

@Maxusmusti Maxusmusti left a 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
Copy link
Collaborator

Choose a reason for hiding this comment

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

build -> built

Copy link
Collaborator

Choose a reason for hiding this comment

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

For line 36

@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Aug 16, 2023
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 }} .
Copy link
Contributor

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.

@jiripetrlik jiripetrlik force-pushed the 291-nightly-image-builds branch from 967e122 to f158fec Compare August 16, 2023 13:50
@jiripetrlik
Copy link
Contributor Author

@Maxusmusti
Thank you for the review. Typo should be fixed and PR was rebased.

Copy link
Collaborator

@Maxusmusti Maxusmusti left a comment

Choose a reason for hiding this comment

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

LGTM

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 16, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 16, 2023

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 16, 2023
@openshift-merge-robot openshift-merge-robot merged commit fb34ba4 into project-codeflare:main Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create github workflow for nightly image builds
5 participants