.default_build_template: &build_template stage: build script: - buildah info - buildah bud --storage-driver=${STORAGE_DRIVER} -t ${FQ_IMAGE_NAME}:java${JAVA_VERSION} -f java/Dockerfile.java${JAVA_VERSION} . - echo "$CI_REGISTRY_PASSWORD" | buildah login -u "$CI_REGISTRY_USER" --password-stdin "$CI_REGISTRY" - buildah push ${FQ_IMAGE_NAME}:java${JAVA_VERSION} rules: - changes: - java/** - if: '$CI_PIPELINE_SOURCE == "schedule"' build_java8: <<: *build_template variables: JAVA_VERSION: "8" build_java17: <<: *build_template variables: JAVA_VERSION: "17" build_java21: <<: *build_template variables: JAVA_VERSION: "21"