-
Notifications
You must be signed in to change notification settings - Fork 57
44 lines (42 loc) · 1.24 KB
/
docker-build-lambda-soak.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
on:
push:
branches:
- main
paths:
- adot/utils/soak/**
- .github/workflows/docker-build-lambda-soak.yml
permissions:
id-token: write
jobs:
build-lambda-soak:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Configure AWS Credentials
uses: aws-actions/[email protected]
with:
role-to-assume: ${{ secrets.INTEG_TEST_LAMBDA_ROLE_ARN }}
role-duration-seconds: 1200
aws-region: us-east-1
- name: Login to ECR
uses: docker/login-action@v3
with:
registry: public.ecr.aws
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Cache Docker layers
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Build docker image
uses: docker/build-push-action@v6
with:
push: true
context: adot/utils/soak
tags: |
public.ecr.aws/aws-otel-test/lambda-soak:latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache