Skip to content
Snippets Groups Projects
base.yml 621 B
Newer Older
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
spec:
  inputs:
    stage:
      description: "GitLab CI/CD stage"
    jvm_version:
      default: "jdk21-jammy"
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
      description: "Version of JVM/OS used in base image"
    gradle_version:
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
      description: "Version of gradle used in base image"
    app_root:
      default: "."
      description: "Root folder of application"
    job_uid:
      description: "When extended by multiple jobs in one pipeline, this prohibits the overwrite of input variables"
---
.gradle-base-$[[ inputs.job_uid ]]:
  image: gradle:$[[ inputs.gradle_version ]]-$[[ inputs.jvm_version ]]
  stage: $[[ inputs.stage ]]