Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: 0.1
component: build
timeoutInSeconds: 5000
shell: bash
env:
exportedVariables:
- buildId
steps:
- type: Command
command: |
buildId=`echo ${OCI_BUILD_RUN_ID} | rev | cut -c 1-6 | rev`
echo "Build ID: $buildId"
- type: Command
command: |
docker build -t ${REGISTRY}/${NAMESPACE}/${IMAGE_NAME} .
docker tag ${REGISTRY}/${NAMESPACE}/${IMAGE_NAME}:latest ${REGISTRY}/${NAMESPACE}/${IMAGE_NAME}:$buildId
outputArtifacts:
- name: image-jvm
type: DOCKER_IMAGE
location: ${REGISTRY}/${NAMESPACE}/${IMAGE_NAME}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
version: 0.1
component: build
timeoutInSeconds: 5000
shell: bash
env:
exportedVariables:
- buildId
steps:
- type: Command
command: |
buildId=`echo ${OCI_BUILD_RUN_ID} | rev | cut -c 1-6 | rev`
echo "Build ID: $buildId"
- type: Command
command: |
# This replaces the default open-jdk
export GRAALVM_VERSION="21"
export JAVA_VERSION="17"
yum -y install graalvm${GRAALVM_VERSION}-ee-${JAVA_VERSION}-jdk;
export JAVA_HOME=/usr/lib64/graalvm/graalvm${GRAALVM_VERSION}-ee-java${JAVA_VERSION};
java -version

mvn clean install

docker build -f Dockerfile.native -t ${REGISTRY}/${NAMESPACE}/${IMAGE_NAME} .
docker tag ${REGISTRY}/${NAMESPACE}/${IMAGE_NAME}:latest ${REGISTRY}/${NAMESPACE}/${IMAGE_NAME}:$buildId
outputArtifacts:
- name: image-native
type: DOCKER_IMAGE
location: ${REGISTRY}/${NAMESPACE}/${IMAGE_NAME}