-
Notifications
You must be signed in to change notification settings - Fork 275
Add Docker images SNAPSHOT on Docker HUB (nightly) #1593
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,3 +61,29 @@ jobs: | |
env: | ||
ORG_GRADLE_PROJECT_apacheUsername: ${{ secrets.NEXUS_USER }} | ||
ORG_GRADLE_PROJECT_apachePassword: ${{ secrets.NEXUS_PW }} | ||
- name: Publish Server Docker nightly image | ||
run: | | ||
./gradlew \ | ||
:polaris-server:assemble \ | ||
:polaris-server:quarkusAppPartsBuild --rerun \ | ||
-Dquarkus.container-image.build=true \ | ||
jbonofre marked this conversation as resolved.
Show resolved
Hide resolved
|
||
-Dquarkus.container-image.push=true \ | ||
-DDquarkus.docker.buildx.platform="linux/amd64,linux/arm64" \ | ||
-Dquarkus.container-image.name=polaris \ | ||
-Dquarkus.container-image.tag=nightly \ | ||
-Dquarkus.container-image.additional-tags="" \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: you could use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If the repository + image name are the same as the ones used for releases, it's safer to not use I recall this ML discussion: https://lists.apache.org/thread/nr4bw27zyfsr0cc0cn34h1yq0d1t01f7 There wasn't a formal consensus there, but the emerging idea would be to use the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, I missed that this publishes to the only repo. I asumed, that this one publishes to a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Feels much safer to publish to a separate repo to clearly separate releases from snapshots/nightlies, also to not confuse renovate/dependabot. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not fan at all of a separate repo for nightly/snapshots. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm ok to use nightly instead of date. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I updated to use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. IIRC we discussed the cons of using one repo, as new tags will confuse renovate and dependabot. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Reading Renovate's doc, it seems it is smart enough to never update a
The above seems to imply that the But I didn't verify if that's indeed the case. |
||
-Dquarkus.container-image.username=${{ secrets.DOCKERHUB_USER }} \ | ||
-Dquarkus.container-image.password=${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: Publish Admin Tool Docker nightly image | ||
run: | | ||
./gradlew \ | ||
:polaris-admin:assemble \ | ||
:polaris-admin:quarkusAppPartsBuild --rerun \ | ||
-Dquarkus.container-image.build=true \ | ||
-Dquarkus.container-image.push=true \ | ||
-DDquarkus.docker.buildx.platform="linux/amd64,linux/arm64" \ | ||
-Dquarkus.container-image.name=polaris-admin-tool \ | ||
-Dquarkus.container-image.tag=nightly \ | ||
-Dquarkus.container-image.additional-tags="" \ | ||
-Dquarkus.container-image.username=${{ secrets.DOCKERHUB_USER }} \ | ||
-Dquarkus.container-image.password=${{ secrets.DOCKERHUB_TOKEN }} |
Uh oh!
There was an error while loading. Please reload this page.