Skip to content

Commit

Permalink
add new image for bridge server testing (#3095)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaronoff97 committed Jul 3, 2024
1 parent 107d2c3 commit 4d5fa95
Show file tree
Hide file tree
Showing 23 changed files with 949 additions and 53 deletions.
50 changes: 0 additions & 50 deletions .github/workflows/publish-autoinstrumentation-e2e-images.yaml

This file was deleted.

55 changes: 55 additions & 0 deletions .github/workflows/publish-test-e2e-images.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: "Publish Test E2E images"

on:
push:
paths:
- 'tests/test-e2e-apps/**'
- '.github/workflows/publish-test-e2e-images.yaml'
branches:
- main
pull_request:
paths:
- 'tests/test-e2e-apps/**'
- '.github/workflows/publish-test-e2e-images.yaml'
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
bridge-server:
uses: ./.github/workflows/reusable-publish-test-e2e-images.yaml
with:
path: bridge-server
platforms: linux/arm64,linux/amd64,linux/s390x,linux/ppc64le
golang:
uses: ./.github/workflows/reusable-publish-test-e2e-images.yaml
with:
path: golang
platforms: linux/arm64,linux/amd64,linux/s390x,linux/ppc64le
python:
uses: ./.github/workflows/reusable-publish-test-e2e-images.yaml
with:
path: python
platforms: linux/arm64,linux/amd64,linux/s390x,linux/ppc64le
java:
uses: ./.github/workflows/reusable-publish-test-e2e-images.yaml
with:
path: java
platforms: linux/arm64,linux/amd64,linux/s390x,linux/ppc64le
apache-httpd:
uses: ./.github/workflows/reusable-publish-test-e2e-images.yaml
with:
path: apache-httpd
platforms: linux/arm64,linux/amd64,linux/s390x,linux/ppc64le
dotnet:
uses: ./.github/workflows/reusable-publish-test-e2e-images.yaml
with:
path: dotnet
platforms: linux/arm64,linux/amd64
nodejs:
uses: ./.github/workflows/reusable-publish-test-e2e-images.yaml
with:
path: nodejs
platforms: linux/arm64,linux/amd64,linux/s390x,linux/ppc64le
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Reusable - Publish autoinstrumentation E2E images
on:
workflow_call:
inputs:
language:
path:
type: string
required: true
platforms:
Expand All @@ -22,7 +22,7 @@ jobs:
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/open-telemetry/opentelemetry-operator/e2e-test-app-${{ inputs.language }}
ghcr.io/open-telemetry/opentelemetry-operator/e2e-test-app-${{ inputs.path }}
tags: |
type=ref,event=branch
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
uses: docker/build-push-action@v6
with:
tags: ${{ steps.meta.outputs.tags }}
context: tests/instrumentation-e2e-apps/${{ inputs.language }}
context: tests/test-e2e-apps/${{ inputs.path }}
platforms: ${{ inputs.platforms }}
push: ${{ github.event_name == 'push' }}
cache-from: type=local,src=/tmp/.buildx-cache
Expand Down
File renamed without changes.
11 changes: 11 additions & 0 deletions tests/test-e2e-apps/bridge-server/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM golang:1.22-alpine as builder

WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux GO111MODULE=on go build -o bridge-server main.go

FROM scratch
COPY --from=builder /app/bridge-server .
ENTRYPOINT ["./bridge-server"]
Loading

0 comments on commit 4d5fa95

Please sign in to comment.