Skip to content

Commit

Permalink
ci: build otelcol sidecar in PR checks
Browse files Browse the repository at this point in the history
  • Loading branch information
swiatekm committed Dec 13, 2023
1 parent 4da64f9 commit 55cb8a6
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/pull_requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,28 @@ jobs:
working-directory: ./operator
run: make manager

build-otelcol-sidecar:
name: Build otelcol sidecar
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v5
with:
go-version: '1.21'
cache-dependency-path: |
.otelcol-builder.yaml
.goreleaser.yaml
- name: Set up QEMU
uses: docker/[email protected]
- name: Set up Docker Buildx
uses: docker/[email protected]
- name: Build otelcol sidecar
working-directory: ./sidecar/otelcol
run: |
make install-builder
make build
test-without-helm:
name: Test resources created without Helm chart
runs-on: ubuntu-20.04
Expand Down
2 changes: 1 addition & 1 deletion sidecar/otelcol/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ build: ensure-correct-builder-version install-goreleaser

.PHONY: generate-sources
generate-sources:
$(BUILDER_BIN_NAME) \
$(BUILDER) \
--go $(GO) \
--version "$(VERSION)" \
--config .otelcol-builder.yaml \
Expand Down

0 comments on commit 55cb8a6

Please sign in to comment.