File tree Expand file tree Collapse file tree 2 files changed +41
-0
lines changed
Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ set -ex
4+
5+ export TERM=${TERM:- dumb}
6+
7+ wget https://download.oracle.com/java/21/latest/jdk-21_linux-x64_bin.tar.gz
8+ tar -xvf jdk-21_linux-x64_bin.tar.gz
9+ VERSION=$( find . -maxdepth 1 -mindepth 1 -name " jdk-21.*" | sed ' s/^..//' )
10+ mv " $VERSION " /opt/
11+
12+ JAVA_HOME=" /opt/${VERSION} "
13+ export JAVA_HOME
14+ PATH=" JAVA_HOME/bin:$PATH "
15+ export PATH
16+
17+ pushd cf-hello-worlds/java-spring-actuator
18+ ./mvnw compile
19+ ./mvnw package
20+ popd
21+
22+ cp -r cf-hello-worlds/* cf-hello-worlds-jsa-build/
Original file line number Diff line number Diff line change 1+ ---
2+ platform : linux
3+
4+ image_resource :
5+ type : registry-image
6+ source :
7+ aws_access_key_id : ((ecr_aws_key))
8+ aws_secret_access_key : ((ecr_aws_secret))
9+ repository : general-task
10+ aws_region : us-gov-west-1
11+ tag : latest
12+
13+ inputs :
14+ - name : cf-hello-worlds
15+ outputs :
16+ - name : cf-hello-worlds-jsa-build
17+
18+ run :
19+ path : cf-hello-worlds/java-spring-actuator/build-java-spring-actuator.sh
You can’t perform that action at this time.
0 commit comments