Skip to content

Migrate to quarkus latest #71

Migrate to quarkus latest

Migrate to quarkus latest #71

Workflow file for this run

name: Fruits App CI with Maven
on:
pull_request:
branches: [ main ]
jobs:
verify-fruits:
name: Verify Fruits Chart in Kubernetes
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Kubernetes KinD Cluster
uses: container-tools/kind-action@v2
with:
version: v0.11.1
registry: true
- uses: actions/setup-java@v4
name: set up jdk 17
with:
distribution: temurin
java-version: 17
cache: maven
- name: Show mvn version
run: ./mvnw -version
- name: Build
run: ./mvnw -B clean install
- name: Push image into local registry
run: ./mvnw clean install -DskipTests -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true -Dquarkus.container-image.registry=$KIND_REGISTRY -Dquarkus.container-image.group=local -Dquarkus.container-image.tag=latest -Dquarkus.container-image.insecure=true
- name: Start Fruits with database from Helm dependency
run: |
KUBERNETES_NAMESPACE=fruits
kubectl create namespace $KUBERNETES_NAMESPACE
# Install
helm install fruits-app ./target/helm/kubernetes/fruits-app --dependency-update -n $KUBERNETES_NAMESPACE --set app.image=$KIND_REGISTRY/local/atomic-fruits:latest --set app.serviceBinding.enabled=false
kubectl wait --for=condition=ready --timeout=5m pod -l app.kubernetes.io/name=db -n $KUBERNETES_NAMESPACE
kubectl wait deployment atomic-fruits-service --for condition=Available=True --timeout=5m -n $KUBERNETES_NAMESPACE
- name: (Only if it failed) Log Fruits traces at failures
if: failure()
run: |
KUBERNETES_NAMESPACE=fruits
kubectl get pods -n $KUBERNETES_NAMESPACE
POD_NAME=$(kubectl get pod -l app.kubernetes.io/name=atomic-fruits-service -n $KUBERNETES_NAMESPACE -o name)
kubectl describe $POD_NAME -n $KUBERNETES_NAMESPACE
kubectl logs $POD_NAME -n $KUBERNETES_NAMESPACE