Skip to content

Onboarding ADOT Java to v2.x - with otel v2.10.0 (NOT READY) #186

Onboarding ADOT Java to v2.x - with otel v2.10.0 (NOT READY)

Onboarding ADOT Java to v2.x - with otel v2.10.0 (NOT READY) #186

name: Smoke test build
on:
pull_request:
branches:
- main
push:
branches:
- main
paths:
- smoke-tests/fakebackend/**
- dependencyManagement/**
- gradle/**
- .github/workflows/docker-build-smoke-tests-fake-backend.yml
env:
AWS_DEFAULT_REGION: us-east-1
permissions:
id-token: write
contents: read
jobs:
build-docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: |
~/.m2/repository/io/opentelemetry/
key: ${{ runner.os }}-maven-local-${{ hashFiles('.github/patches/opentelemetry-java*.patch') }}
- name: Publish patched dependencies to maven local
uses: ./.github/actions/patch-dependencies
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg_password: ${{ secrets.GPG_PASSPHRASE }}
- uses: gradle/wrapper-validation-action@v1
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_ASSUME_ROLE_ARN }}
aws-region: ${{ env.AWS_DEFAULT_REGION }}
- name: Log in to AWS ECR
uses: docker/login-action@v3
with:
registry: public.ecr.aws
- name: Build and push docker image
uses: gradle/gradle-build-action@v3
with:
arguments: :smoke-tests:fakebackend:jib