Skip to content
Open

wip #199

Show file tree
Hide file tree
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
32 changes: 29 additions & 3 deletions .github/workflows/1.dev-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ concurrency:
jobs:
dev-test:
runs-on: ubuntu-latest
permissions: # Necessary for workload identity provider
contents: 'read'
id-token: 'write'
steps:
# 1. Setup
- uses: actions/checkout@v4
Expand All @@ -23,7 +26,30 @@ jobs:
cache: 'maven'

# 2. Run tests
- name: Run Unit & Integration Tests
run: mvn clean verify --no-transfer-progress
# - name: Run Unit & Integration Tests
# run: mvn clean verify --no-transfer-progress

# 3. Notify if fails
# 3. Auth
- name: Auth via Workload Identity Federation
id: auth
uses: google-github-actions/auth@v2.1.5
with:
workload_identity_provider: ${{ secrets.WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ secrets.SERVICE_ACCOUNT }} # impersonated SA
audience: ${{ secrets.WORKLOAD_IDENTITY_PROVIDER_AUDIENCE }}

# 4. Setup gcloud & configure docker to use gcloud
- name: Setup gcloud
uses: google-github-actions/setup-gcloud@v2.1.1
with:
project_id: ${{ secrets.PROJECT_ID }}
- name: Setup docker to authenticate via gcloud
run: gcloud --quiet auth configure-docker us-docker.pkg.dev

# 5. Build image
- name: Build image
run: mvn clean package -DskipTests spring-boot:build-image --no-transfer-progress -Dspring-boot.build-image.imageName=$IMAGE_REGISTRY:$IMAGE_TAG

# 6. Push image
- name: Push image
run: docker push $IMAGE_REGISTRY:$IMAGE_TAG
4 changes: 2 additions & 2 deletions opentelemetry/default.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# https://github.com/open-telemetry/opentelemetry-java/blob/main/sdk-extensions/autoconfigure/README.md
# https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases
# https://opentelemetry.io/docs/languages/java/automatic/configuration/

# Version 2.4.0
# Version 2.6.0

otel.javaagent.enabled=true
otel.javaagent.logging=application
Expand Down
4 changes: 2 additions & 2 deletions opentelemetry/dev.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# https://github.com/open-telemetry/opentelemetry-java/blob/main/sdk-extensions/autoconfigure/README.md
# https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases
# https://opentelemetry.io/docs/languages/java/automatic/configuration/

# Version 2.4.0
# Version 2.6.0

otel.javaagent.enabled=true
otel.javaagent.logging=application
Expand Down
Binary file modified opentelemetry/opentelemetry-javaagent.jar
Binary file not shown.