Skip to content

Merge pull request #1388 from aws-observability/dependabot/npm_and_ya… #1

Merge pull request #1388 from aws-observability/dependabot/npm_and_ya…

Merge pull request #1388 from aws-observability/dependabot/npm_and_ya… #1

name: Update Test Images
# We should execute only one workflow run at a time
concurrency:
group: test_images_concurrency
cancel-in-progress: false
on:
workflow_dispatch:
push:
branches: ['terraform']
# List of paths that should be considered when triggering the workflow
paths: ['mocked_servers/**', 'sample-apps/**']
permissions:
id-token: write
contents: read
jobs:
run-image-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: ${{ secrets.TEST_FW_ASSUMABLE_ROLE_ARN }}
aws-region: us-west-2
role-duration-seconds: 7200
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17
- uses: gradle/wrapper-validation-action@v1
- name: Build locally with gradle
uses: gradle/gradle-build-action@v2
with:
arguments: build
- name: Set up terraform
uses: hashicorp/setup-terraform@v2
- name: run imagebuild
working-directory: terraform/imagebuild
run: |
terraform init && terraform apply --auto-approve