-
Notifications
You must be signed in to change notification settings - Fork 24
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
Introducing OKE #534
base: 6.1.x
Are you sure you want to change the base?
Introducing OKE #534
Conversation
fecdc56
to
3632555
Compare
c93bc82
to
82acb32
Compare
82acb32
to
71fdbd8
Compare
.github/workflows/graalvm.yml
Outdated
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} | ||
GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USERNAME }} | ||
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }} | ||
GIT_COMMIT_HASH: ${{ github.sha }} | ||
OCI_REGION: ${{ secrets.OCI_REGION }} |
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.
Can we change the action to use OCI_CLI_REGION
instead?
@@ -16,6 +16,12 @@ on: | |||
jobs: | |||
build: | |||
if: github.repository != 'micronaut-projects/micronaut-project-template' | |||
env: |
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.
FYI this workflow is being removed since we are running coverage in the main Gradle workflow. See micronaut-projects/micronaut-project-template#342
String tagName = "latest" | ||
if (StringUtils.isNotEmpty(imageTag)) { | ||
tagName = imageTag | ||
} |
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.
String tagName = "latest" | |
if (StringUtils.isNotEmpty(imageTag)) { | |
tagName = imageTag | |
} | |
String tagName = imageTag ?: "latest" |
def imageName = "micronaut-kubernetes-operator-example" | ||
def tagName = "latest" | ||
|
||
if (StringUtils.isNotEmpty(imagePrefix.orElse(null))) { | ||
imageName = imagePrefix.get() + imageName | ||
} | ||
|
||
if (StringUtils.isNotEmpty(imageTag.orElse(null))) { | ||
tagName = imageTag.get() | ||
} | ||
|
||
imageName = imageName + ":" + tagName | ||
|
||
log.info("Image name: ${imageName}") |
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 could be reused into a method in KubernetesSpecification
b6e7447
to
c35909e
Compare
Kudos, SonarCloud Quality Gate passed! |
This PR moves CI/CD tests to use OKE cluster instead of Kind. With vcluster we are creating virtual cluster for every test run inside Oracle Kubernetes Engine. Docker images that produced during build process are specially tagged by hash of commit and java version. Then images are pushed to Oracle Container Registry. Every test run will create virtual cluster and pick docker image based on the tag described above.
The old setup files are also left because for local development it is much easier to use kind instead of OKE.