Skip to content

Commit

Permalink
java version
Browse files Browse the repository at this point in the history
  • Loading branch information
chaudharysaket committed May 16, 2024
1 parent 98bcc9e commit 790de93
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/publish-java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,24 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Set up Java version
id: set-java-version
run: |
declare -A java_version_map
java_version_map=(
["java8al2"]="8"
["java11"]="11"
["java17"]="17"
["java21"]="21"
)
numeric_version=${java_version_map[${{ matrix.java-version }}]}
echo "JAVA_NUMERIC_VERSION=$numeric_version" >> $GITHUB_ENV
- name: Use Java ${{ env.JAVA_NUMERIC_VERSION }}
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: ${{ env.JAVA_NUMERIC_VERSION }}
- name: Check Tag
id: java-check-tag
run: |
Expand Down
2 changes: 1 addition & 1 deletion java/publish-ecr-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ JAVA21_DIST_X86_64=$DIST_DIR/java21.x86_64.zip
source ../libBuild.sh

function usage {
echo "./publish-layers.sh [java8al2, java11, java17, java21]"
echo "./publish-ecr-images.sh [java8al2, java11, java17, java21]"
}

function build-arm() {
Expand Down

0 comments on commit 790de93

Please sign in to comment.