Skip to content

Commit

Permalink
Fix AMI description for GraalVM and Add GA for Graal latest
Browse files Browse the repository at this point in the history
  • Loading branch information
dmelina committed Jun 21, 2024
1 parent 76d455b commit cd20be2
Show file tree
Hide file tree
Showing 5 changed files with 81 additions and 5 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/aws-arm-graal-latest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: AWS arm graalvm latest
on:
workflow_dispatch:

permissions:
id-token: write
contents: read

defaults:
run:
shell: bash

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Packer
uses: hashicorp-contrib/setup-packer@v1
with:
packer-version: '1.7.8'

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: ${{ secrets.AWS_ROLE_SELLER }}
aws-region: eu-west-3


- name: Build image from template
run: cd packer; packer init aws-arm-graal.pkr.hcl


- name: Build image from template
run: ./build-aws-arm-graal.sh --java-major 22 --copy-regions true --profile default --latest true
38 changes: 38 additions & 0 deletions .github/workflows/aws-x86-graal-latest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: AWS x86 graalvm latest
on:
workflow_dispatch:

permissions:
id-token: write
contents: read

defaults:
run:
shell: bash

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Packer
uses: hashicorp-contrib/setup-packer@v1
with:
packer-version: '1.7.8'

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: ${{ secrets.AWS_ROLE_SELLER }}
aws-region: eu-west-3


- name: Build image from template
run: cd packer; packer init aws-x86-graal.pkr.hcl


- name: Build image from template
run: ./build-aws-x86-graal.sh --java-major 22 --copy-regions true --profile default --latest true
2 changes: 1 addition & 1 deletion .github/workflows/aws-x86-graal22.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: AWS x86 graal 22
name: AWS x86 graalvm 22
on:
workflow_dispatch:

Expand Down
4 changes: 2 additions & 2 deletions build-aws-arm-graal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ function run
unset AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_DEFAULT_REGION
fi

ami_description="classic-graalvm-$java_major"
ami_description="graalvm-openjdk-$java_major"
if [ $latest == "true" ]
then
ami_description="classic-graalvm-latest"
ami_description="graalvm-openjdk-latest"
fi

log info "AMI description: $ami_description"
Expand Down
4 changes: 2 additions & 2 deletions build-aws-x86-graal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ function run
unset AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_DEFAULT_REGION
fi

ami_description="classic-graalvm-$java_major"
ami_description="graalvm-openjdk-$java_major"
if [ $latest == "true" ]
then
ami_description="classic-graalvm-latest"
ami_description="graalvm-openjdk-latest"
fi

log info "AMI description: $ami_description"
Expand Down

0 comments on commit cd20be2

Please sign in to comment.