Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add java wrapper layer build #1307

Merged
merged 1 commit into from
May 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 41 additions & 3 deletions .github/workflows/release-layer-java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,20 @@ jobs:
- name: Execute Gradle build
run: |
cd java
./gradlew :layer-javaagent:assemble --scan --stacktrace
./gradlew :layer-javaagent:assemble :layer-wrapper:assemble --scan --stacktrace

- uses: actions/upload-artifact@v4
name: Save assembled layer to build
name: Save javaagent layer to build
with:
name: opentelemetry-javaagent-layer.zip
path: java/layer-javaagent/build/distributions/opentelemetry-javaagent-layer.zip

- uses: actions/upload-artifact@v4
name: Save javawrapper layer to build
with:
name: opentelemetry-javawrapper-layer.zip
path: java/layer-wrapper/build/distributions/opentelemetry-java-wrapper.zip

- name: Save Javaagent Version
id: save-javaagent-version
shell: bash
Expand All @@ -47,7 +53,7 @@ jobs:
JAVAAGENT_VERSION=$(java -jar ./opentelemetry-javaagent.jar)
echo "JAVAAGENT_VERSION=$JAVAAGENT_VERSION" >> $GITHUB_OUTPUT

publish-layer:
publish-javaagent-layer:
uses: ./.github/workflows/layer-publish.yml
needs: build-layer
strategy:
Expand Down Expand Up @@ -79,3 +85,35 @@ jobs:
aws_region: ${{ matrix.aws_region }}
secrets: inherit

publish-javawrapper-layer:
uses: ./.github/workflows/layer-publish.yml
needs: build-layer
strategy:
matrix:
aws_region:
- ap-northeast-1
- ap-northeast-2
- ap-south-1
- ap-southeast-1
- ap-southeast-2
- ca-central-1
- eu-central-1
- eu-north-1
- eu-west-1
- eu-west-2
- eu-west-3
- sa-east-1
- us-east-1
- us-east-2
- us-west-1
- us-west-2
with:
artifact-name: opentelemetry-javawrapper-layer.zip
layer-name: opentelemetry-javawrapper
component-version: "--"
# architecture:
runtimes: java8 java8.al2 java11 java17
release-group: prod
aws_region: ${{ matrix.aws_region }}
secrets: inherit

Loading