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 new image for bridge server e2e tests #3095

Merged
merged 1 commit into from
Jul 3, 2024
Merged
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
50 changes: 0 additions & 50 deletions .github/workflows/publish-autoinstrumentation-e2e-images.yaml
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was renamed!

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
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
Loading