Skip to content

Commit

Permalink
Auto-update builder on Makefile (#27)
Browse files Browse the repository at this point in the history
And bump the Makefile to the latest.

Fixes #26

Signed-off-by: Juraci Paixão Kröhling <juraci@kroehling.de>

Signed-off-by: Juraci Paixão Kröhling <juraci@kroehling.de>
  • Loading branch information
jpkrohling authored Sep 15, 2022
1 parent 1cb3153 commit 00e791a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GO ?= go

OTELCOL_BUILDER_VERSION ?= 0.59.0
OTELCOL_BUILDER_VERSION ?= 0.60.0
OTELCOL_BUILDER_DIR ?= ${HOME}/bin
OTELCOL_BUILDER ?= ${OTELCOL_BUILDER_DIR}/ocb

Expand Down
3 changes: 3 additions & 0 deletions scripts/update-to-latest-otelcol.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ for manifest in $manifests; do
sed -i "s~\(.*github.com/open-telemetry/opentelemetry-collector-contrib/.*\s\).*~\1v${latest_contrib_version}~" $manifest
done

# Update the Makefile
sed -i "s/^OTELCOL_BUILDER_VERSION.*/OTELCOL_BUILDER_VERSION ?= ${latest_core_version}/" Makefile

git diff --quiet $manifests
if [[ $? == 0 ]]; then
echo "We are already at the latest versions."
Expand Down

0 comments on commit 00e791a

Please sign in to comment.