-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Publish operator image to Quay #10719
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
|
Tested on my private Dockerhub account (tag 6.7.8): |
| - name: Cache Maven packages | ||
| id: cache | ||
| uses: actions/cache@v2 | ||
| with: | ||
| path: | | ||
| ~/.m2/repository | ||
| key: cache-1-${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | ||
| restore-keys: cache-1-${{ runner.os }}-m2 | ||
|
|
||
| - name: Build locally Keycloak artifacts to avoid depending on Maven | ||
| run: | | ||
| mvn clean install -DskipTests -DskipExamples -DskipTestsuite |
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.
IIRC, we actually wanted to depend on Maven central so we could build just the operator module in this workflow. Or not? @stianst
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.
From experience, the sync with Maven Central can take several hours (even 1 day or so), relying on the local cache prevents to be affected from those delays.
I warmly suggest we use the local cache, but if you understand the downsides and still prefer to rely on upstream published jars I'm ready to adapt this PR.
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.
I don't have a strong opinion about this. Let's wait @stianst.
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 prefer to just pull the actually released artefacts rather than building here. We could pull those directly from https://s01.oss.sonatype.org/ instead of Maven Central as they will be available there straight away.
Since this is just a temporary solution until we move to the new release process I'm okay with this for now. However, building the whole of Keycloak just because you need keycloak-common is quite pointless.
If you build the Operator with:
mvn -P operator -pl operator -am clean package
That should take care of building the Operator and the dependencies it needs.
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.
Updated the command to:
mvn -P operator -pl operator -am clean install -DskipTestsit's indeed much faster! Thanks for the suggestion!
c10066d to
aec1a4b
Compare
Resolves #10436