Commit 18ef29da authored by cnguyen2's avatar cnguyen2
Browse files

Allow manually build jvm mode in CI environment

parent d79cddb0
Pipeline #216710 passed with stages
in 12 minutes and 57 seconds
......@@ -5,6 +5,7 @@ stages:
variables:
CONTAINER_TEMP_IMAGE: $CI_REGISTRY_IMAGE:temp-$CI_COMMIT_SHORT_SHA
CONTAINER_JVM_TEMP_IMAGE: $CI_REGISTRY_IMAGE:temp-jvm-$CI_COMMIT_SHORT_SHA
build native:
stage: build
......@@ -17,6 +18,20 @@ build native:
paths:
- $CI_PROJECT_DIR/target/*-runner
build jvm:
stage: build
image: quay.io/quarkus/centos-quarkus-maven:21.0.0-java11
when: manual
only:
- master
script:
- mvn -f $CI_PROJECT_DIR/pom.xml clean package -Dquarkus.container-image.build=false
artifacts:
paths:
- $CI_PROJECT_DIR/target/*-runner.jar
- $CI_PROJECT_DIR/target/lib/*
- $CI_PROJECT_DIR/target/quarkus-app/*
containerize native:
stage: containerize
image:
......@@ -33,6 +48,23 @@ containerize native:
--dockerfile $CI_PROJECT_DIR/src/main/docker/Dockerfile.native
--destination $CONTAINER_TEMP_IMAGE
containerize jvm:
stage: containerize
when: manual
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
only:
- master
script:
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- >
/kaniko/executor
--context $CI_PROJECT_DIR
--dockerfile $CI_PROJECT_DIR/src/main/docker/Dockerfile.jvm
--destination $CONTAINER_JVM_TEMP_IMAGE
push latest:
stage: push
image:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment