Skip to content

Bump docker/setup-buildx-action from 2 to 3 (#710) #22

Bump docker/setup-buildx-action from 2 to 3 (#710)

Bump docker/setup-buildx-action from 2 to 3 (#710) #22

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-latest
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@v3
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@v4
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