-
Notifications
You must be signed in to change notification settings - Fork 1
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
Use reusable image deploy #510
base: develop
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #510 +/- ##
=============================================
- Coverage 27.08% 20.37% -6.72%
+ Complexity 150 110 -40
=============================================
Files 44 44
Lines 2322 2322
Branches 196 196
=============================================
- Hits 629 473 -156
- Misses 1646 1809 +163
+ Partials 47 40 -7
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Ah, you can ignore my question in the other PR. I think it makes sense, we may want to keep an eye on artifactory (e.g. if i gets too big, or I may have set a limit on how many snapshot versions it can store, so the old ones may drop out sooner) but I think this is something @svonworl requested at some point to work with feature branches or something |
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.
How do we feel about creating the image for every branch?
I'm OK with creating it for every branch. Most of the time we won't need it, but when we do, it's useful. Unless we run into some quota limits on Quay, might as well.
.github/workflows/deploy_tagged.yml
Outdated
|
||
jobs: | ||
call-reusable-tagged-release: | ||
uses: dockstore/workflow-actions/.github/workflows/deploy_tagged.yaml@main | ||
uses: dockstore/workflow-actions/.github/workflows/deploy_tagged.yaml@seab-6771/reusable-image-deploy |
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.
Presumably you'll change this to main
after your other PR is merged?
.github/workflows/maven.yml
Outdated
deploy_tagged: | ||
if: github.ref_type == 'tag' | ||
uses: dockstore/workflow-actions/.github/workflows/deploy_tagged.yaml@seab-6771/reusable-image-deploy | ||
secrets: inherit |
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.
Little bit confused by deploy_image
and deploy_tagged
, they seem similar. Why not just [the functionality of] deploy_image
on its own?
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.
deploy_image
deploys the image to quay and uploads the image digest to S3.
deploy_tagged
uploads the tagged release to artifactory.
They could arguably be combined (at least from the POV of this repo), but not all of our repositories require uploading the artifacts to artifactory, which is why I separated out deploy_image
and deploy_tagged
.
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.
Would be good code comment
Quality Gate passedIssues Measures |
Description
This PR uses the reusable
deploy_artifacts
workflow from dockstore/workflow-actions#3 that deploys a branch/tag to artifactory and uploads an image to quay. This happens for every push of a branch and tag and does not need to be manually invoked.The settings.xml file is deleted because the settings are now specified in the reusable
deploy_artifacts
workflow.Review Instructions
Builds should pass for the develop branch. Create a new tagged release and verify that the
Deploy artifacts
GitHub action works.Issue
https://ucsc-cgl.atlassian.net/browse/SEAB-6771
Security
If there are any concerns that require extra attention from the security team, highlight them here.
Please make sure that you've checked the following before submitting your pull request. Thanks!
mvn clean install
in the project that you have modified (until https://ucsc-cgl.atlassian.net/browse/SEAB-5300 adds multi-module support properly)