Skip to content

Commit

Permalink
use released builder
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcastai committed Nov 28, 2024
1 parent a69a3b4 commit 6178e6b
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,15 @@ jobs:
with:
go-version: 1.23.2

- name: Checkout OpenTelemetry Collector repository
run: |
git clone https://github.com/open-telemetry/opentelemetry-collector.git /tmp/opentelemetry-collector
cd /tmp/opentelemetry-collector
git checkout v0.104.0
- name: Build builder tool
run: |
cd /tmp/opentelemetry-collector/cmd/builder
go build -o builder .
- name: Install dependency
run: go install go.opentelemetry.io/collector/cmd/[email protected]

- name: Get release tag
if: github.event_name == 'release'
run: echo "RELEASE_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- name: Prepare release
run: |
/tmp/opentelemetry-collector/cmd/builder/builder --skip-compilation --config builder-config.yaml
run: builder --skip-compilation --config builder-config.yaml

- name: Build Go binary amd64
run: cd castai-collector && go build -ldflags "-s -w -X main.GitCommit=$GITHUB_SHA -X main.GitRef=$GITHUB_REF -X main.Version=${RELEASE_TAG:-commit-$GITHUB_SHA}" -o castai-collector-amd64
Expand Down

0 comments on commit 6178e6b

Please sign in to comment.