-
Notifications
You must be signed in to change notification settings - Fork 62
47 lines (42 loc) · 1.28 KB
/
update-test-images.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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:
- name: Remove cache
run: rm -rf /opt/hostedtoolcache
- uses: actions/checkout@v4
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.TEST_FW_ASSUMABLE_ROLE_ARN }}
aws-region: us-west-2
role-duration-seconds: 7200
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17
- uses: gradle/wrapper-validation-action@v3
- name: Build locally with gradle
uses: gradle/gradle-build-action@v3
with:
arguments: build
- name: Set up terraform
uses: hashicorp/setup-terraform@v3
- name: run imagebuild
working-directory: terraform/imagebuild
run: |
terraform init && terraform apply --auto-approve