Skip to content

Commit 7b568ea

Browse files
committed
add concourse build task
1 parent 73c1fce commit 7b568ea

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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/
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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

0 commit comments

Comments
 (0)