-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #106 from SumoLogic/ci/otelcol-config
feat: add otelcol-config binary
- Loading branch information
Showing
7 changed files
with
93 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -149,22 +149,28 @@ jobs: | |
echo path="$PACKAGE_NAME" >> $GITHUB_OUTPUT | ||
- name: Set simple otc-bin outputs | ||
id: otc-bin | ||
id: bin | ||
if: ${{ !inputs.use_release_artifacts && inputs.workflow_id != '' }} | ||
env: | ||
OTC_BIN: >- | ||
${{ | ||
steps.cmake-linux.outputs.otc-bin || | ||
steps.cmake-other.outputs.otc-bin | ||
}} | ||
OTC_CONFIG_BIN: >- | ||
${{ | ||
steps.cmake-linux.outputs.otc-config-bin || | ||
steps.cmake-other.outputs.otc-config-bin | ||
}} | ||
run: > | ||
echo path="$OTC_BIN" >> $GITHUB_OUTPUT | ||
echo otelcol_sumo_path="$OTC_BIN" >> $GITHUB_OUTPUT && | ||
echo otelcol_config_path="$OTC_CONFIG_BIN" >> $GITHUB_OUTPUT | ||
# Download the artifacts required to build the package target. If | ||
# inputs.workflow_id is empty then this will be skipped and CMake will | ||
# attempt to fetch the artifacts from a GitHub Release matching | ||
# otc_version and otc_sumo_version. | ||
- name: Download artifacts from sumologic-otel-collector | ||
- name: Download otelcol-sumo artifact from sumologic-otel-collector | ||
uses: dawidd6/[email protected] | ||
if: ${{ !inputs.use_release_artifacts && inputs.workflow_id != '' }} | ||
with: | ||
|
@@ -173,7 +179,20 @@ jobs: | |
run_id: ${{ inputs.workflow_id }} | ||
workflow: dev_builds.yml | ||
workflow_conclusion: success | ||
name: ${{ steps.otc-bin.outputs.path }} | ||
name: ${{ steps.bin.outputs.otelcol_sumo_path }} | ||
path: ./build/gh-artifacts | ||
if_no_artifact_found: fail | ||
|
||
- name: Download otelcol-config artifact from sumologic-otel-collector | ||
uses: dawidd6/[email protected] | ||
if: inputs.workflow_id != '' | ||
with: | ||
github_token: ${{ secrets.gh_artifacts_token }} | ||
repo: SumoLogic/sumologic-otel-collector | ||
run_id: ${{ inputs.workflow_id }} | ||
workflow: dev_builds.yml | ||
workflow_conclusion: success | ||
name: ${{ steps.bin.outputs.otelcol_config_path }} | ||
path: ./build/gh-artifacts | ||
if_no_artifact_found: fail | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
FROM alpine:3.17 | ||
MAINTAINER Sumo Logic <[email protected]> | ||
LABEL org.opencontainers.image.authors="Sumo Logic <opensource-collection-team@sumologic.com>" | ||
|
||
RUN apk add --no-cache \ | ||
cmake \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters