Files
coder-images/java/.gitlab-ci.yml
T
2025-11-16 01:36:01 -05:00

12 lines
460 B
YAML

.default_build_template: &build_template
stage: build
script:
- buildah info
- buildah bud --storage-driver=${STORAGE_DRIVER} --pull -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}
build_java21:
<<: *build_template
variables:
JAVA_VERSION: "21"