-
Notifications
You must be signed in to change notification settings - Fork 15
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
👷 Change build and run analysis conditions #445
Conversation
947a934
to
67a5c34
Compare
ddb9c33
to
8f16cf5
Compare
branches: | ||
- 'dev' | ||
paths: | ||
- 'Dockerfile' |
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.
This condition will only trigger if a commit is merged into the dev
branch AND that commit has a change to the Dockerfile.
jobs: | ||
build_and_publish_image: | ||
name: Build and Publish Image | ||
runs-on: ubuntu-latest-m |
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.
Using the large runner to build since it will be more infrequent per the condition above.
pull_request: | ||
workflow_dispatch: |
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.
This is the analysis workflow now. It will trigger due to either of the below conditions:
- A new PR is opened
- A manual workflow is triggered through the GitHub Actions console
@@ -166,19 +123,19 @@ jobs: | |||
- uses: actions/checkout@v3 | |||
|
|||
- name: Download Data | |||
uses: docker://pgc-images.sbgenomics.com/d3b-bixu/open-pedcan:analysisjob | |||
uses: docker://pgc-images.sbgenomics.com/d3b-bixu/open-pedcan:latest |
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.
Using the latest
tag for analysis means that changes to the Dockerfile and changes to the packages/data HAVE to be separate PRs.
This PR makes the following changes to CI:
This should allow for an economical use of large Github runners and cut the time to run the analysis job from over 2 and a half hours to about 30 minutes.