Skip to content

Commit 4d5fa95

Browse files
authored
add new image for bridge server testing (#3095)
1 parent 107d2c3 commit 4d5fa95

23 files changed

+949
-53
lines changed

.github/workflows/publish-autoinstrumentation-e2e-images.yaml

-50
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: "Publish Test E2E images"
2+
3+
on:
4+
push:
5+
paths:
6+
- 'tests/test-e2e-apps/**'
7+
- '.github/workflows/publish-test-e2e-images.yaml'
8+
branches:
9+
- main
10+
pull_request:
11+
paths:
12+
- 'tests/test-e2e-apps/**'
13+
- '.github/workflows/publish-test-e2e-images.yaml'
14+
workflow_dispatch:
15+
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
18+
cancel-in-progress: true
19+
20+
jobs:
21+
bridge-server:
22+
uses: ./.github/workflows/reusable-publish-test-e2e-images.yaml
23+
with:
24+
path: bridge-server
25+
platforms: linux/arm64,linux/amd64,linux/s390x,linux/ppc64le
26+
golang:
27+
uses: ./.github/workflows/reusable-publish-test-e2e-images.yaml
28+
with:
29+
path: golang
30+
platforms: linux/arm64,linux/amd64,linux/s390x,linux/ppc64le
31+
python:
32+
uses: ./.github/workflows/reusable-publish-test-e2e-images.yaml
33+
with:
34+
path: python
35+
platforms: linux/arm64,linux/amd64,linux/s390x,linux/ppc64le
36+
java:
37+
uses: ./.github/workflows/reusable-publish-test-e2e-images.yaml
38+
with:
39+
path: java
40+
platforms: linux/arm64,linux/amd64,linux/s390x,linux/ppc64le
41+
apache-httpd:
42+
uses: ./.github/workflows/reusable-publish-test-e2e-images.yaml
43+
with:
44+
path: apache-httpd
45+
platforms: linux/arm64,linux/amd64,linux/s390x,linux/ppc64le
46+
dotnet:
47+
uses: ./.github/workflows/reusable-publish-test-e2e-images.yaml
48+
with:
49+
path: dotnet
50+
platforms: linux/arm64,linux/amd64
51+
nodejs:
52+
uses: ./.github/workflows/reusable-publish-test-e2e-images.yaml
53+
with:
54+
path: nodejs
55+
platforms: linux/arm64,linux/amd64,linux/s390x,linux/ppc64le

.github/workflows/reusable-publish-autoinstrumentation-e2e-images.yaml .github/workflows/reusable-publish-test-e2e-images.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Reusable - Publish autoinstrumentation E2E images
33
on:
44
workflow_call:
55
inputs:
6-
language:
6+
path:
77
type: string
88
required: true
99
platforms:
@@ -22,7 +22,7 @@ jobs:
2222
uses: docker/metadata-action@v5
2323
with:
2424
images: |
25-
ghcr.io/open-telemetry/opentelemetry-operator/e2e-test-app-${{ inputs.language }}
25+
ghcr.io/open-telemetry/opentelemetry-operator/e2e-test-app-${{ inputs.path }}
2626
tags: |
2727
type=ref,event=branch
2828
@@ -51,7 +51,7 @@ jobs:
5151
uses: docker/build-push-action@v6
5252
with:
5353
tags: ${{ steps.meta.outputs.tags }}
54-
context: tests/instrumentation-e2e-apps/${{ inputs.language }}
54+
context: tests/test-e2e-apps/${{ inputs.path }}
5555
platforms: ${{ inputs.platforms }}
5656
push: ${{ github.event_name == 'push' }}
5757
cache-from: type=local,src=/tmp/.buildx-cache
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM golang:1.22-alpine as builder
2+
3+
WORKDIR /app
4+
COPY go.mod go.sum ./
5+
RUN go mod download
6+
COPY . .
7+
RUN CGO_ENABLED=0 GOOS=linux GO111MODULE=on go build -o bridge-server main.go
8+
9+
FROM scratch
10+
COPY --from=builder /app/bridge-server .
11+
ENTRYPOINT ["./bridge-server"]

0 commit comments

Comments
 (0)