Skip to content
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
6 changes: 6 additions & 0 deletions .github/workflows/pull_request_integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@ jobs:
ref: ${{ inputs.ref || github.sha }}
persist-credentials: false

- name: Log in to Docker Hub
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
with:
username: ${{ vars.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN_EBPF_INSTRUMENTATION }}

- name: Set up Go
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0 # zizmor: ignore[cache-poisoning] go.sum verifies module integrity
with:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/pull_request_integration_tests_arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,12 @@ jobs:
ref: ${{ inputs.ref || github.sha }}
persist-credentials: false

- name: Log in to Docker Hub
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
with:
username: ${{ vars.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN_EBPF_INSTRUMENTATION }}

- name: Set up Go
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0 # zizmor: ignore[cache-poisoning] go.sum verifies module integrity
with:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/pull_request_k8s_integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ jobs:
ref: ${{ inputs.ref || github.sha }}
persist-credentials: false

- name: Log in to Docker Hub
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
with:
username: ${{ vars.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN_EBPF_INSTRUMENTATION }}

- name: Set up Go
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0 # zizmor: ignore[cache-poisoning] go.sum verifies module integrity
with:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/pull_request_oats_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ jobs:
ref: ${{ inputs.ref || github.sha }}
persist-credentials: false

- name: Log in to Docker Hub
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
with:
username: ${{ vars.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN_EBPF_INSTRUMENTATION }}

- name: Set up Go
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0 # zizmor: ignore[cache-poisoning] go.sum verifies module integrity
with:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/workflow_integration_tests_vm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,12 @@ jobs:
ref: ${{ inputs.ref || github.sha }}
persist-credentials: false

- name: Log in to Docker Hub
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
with:
username: ${{ vars.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN_EBPF_INSTRUMENTATION }}

- name: Set up Go
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0 # zizmor: ignore[cache-poisoning] go.sum verifies module integrity
with:
Expand Down
11 changes: 11 additions & 0 deletions internal/test/integration/dockerutil_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,16 @@ func setupContainerCollector(t *testing.T, network *dockertest.Network, configFi
t.Log("OpenTelemetry Collector container started")
}

// dockerAuthConfigs loads Docker registry credentials from ~/.docker/config.json
// if available. In CI, docker/login-action populates this file. Returns an empty
// AuthConfigurations (no-op) when the config file is absent or unreadable.
func dockerAuthConfigs() docker.AuthConfigurations {
if cfgs, err := docker.NewAuthConfigurationsFromDockerCfg(); err == nil {
return *cfgs
}
return docker.AuthConfigurations{}
}

// buildOBIImage builds the OBI image. When SKIP_DOCKER_BUILD is set, the image
// has been pre-built for the VM workflow prior to QEMU startup.
func buildOBIImage() error {
Expand All @@ -151,6 +161,7 @@ func buildOBIImage() error {
Dockerfile: "internal/test/integration/components/obi/Dockerfile",
OutputStream: os.Stdout,
ErrorStream: os.Stderr,
AuthConfigs: dockerAuthConfigs(),
})
}

Expand Down
1 change: 1 addition & 0 deletions internal/test/integration/http_go_otel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ func setupGoOTelTestServer(t *testing.T, network *dockertest.Network, env []stri
Dockerfile: "internal/test/integration/components/go_otel/Dockerfile",
OutputStream: t.Output(),
ErrorStream: t.Output(),
AuthConfigs: dockerAuthConfigs(),
})
if buildGoOTelTestServerErr != nil {
return
Expand Down
Loading