Skip to content

[chore] [exporter/signalfx] enable cpu attr in per-core changelog example #3

[chore] [exporter/signalfx] enable cpu attr in per-core changelog example

[chore] [exporter/signalfx] enable cpu attr in per-core changelog example #3

Workflow file for this run

name: golden
on:
push:
branches: [main]
tags:
- "v[0-9]+.[0-9]+.[0-9]+*"
paths-ignore:
- "**/README.md"
merge_group:
pull_request:
paths-ignore:
- "**/README.md"
env:
# Make sure to exit early if cache segment download times out after 2 minutes.
# We limit cache download as a whole to 5 minutes.
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2
# Do not cancel this workflow on main. See https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/16616
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions: read-all
jobs:
build-dev:
runs-on: ubuntu-24.04
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- uses: ./.github/actions/setup-go-tools
with:
go-version: oldstable
- name: Set up QEMU
uses: docker/setup-qemu-action@06116385d9baf250c9f4dcb4858b16962ea869c3 # v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4
- name: Build binaries
run: |
GOOS=linux GOARCH=ppc64le make golden
GOOS=linux GOARCH=arm64 make golden
GOOS=linux GOARCH=amd64 make golden
GOOS=linux GOARCH=s390x make golden
cp bin/golden_* cmd/golden/
- name: Build golden
uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7
with:
context: cmd/golden
push: false
tags: ghcr.io/open-telemetry/opentelemetry-collector-contrib/golden:dev
platforms: linux/amd64,linux/arm64,linux/s390x,linux/ppc64le
- run: ./.github/workflows/scripts/check-disk-space.sh
publish-latest:
runs-on: ubuntu-24.04
if: (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')) && github.repository == 'open-telemetry/opentelemetry-collector-contrib'
permissions:
packages: write
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- uses: ./.github/actions/setup-go-tools
with:
go-version: oldstable
- name: Set up QEMU
uses: docker/setup-qemu-action@06116385d9baf250c9f4dcb4858b16962ea869c3 # v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4
- name: Login to GitHub Container Registry
uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build binaries
run: |
GOOS=linux GOARCH=ppc64le make golden
GOOS=linux GOARCH=arm64 make golden
GOOS=linux GOARCH=amd64 make golden
GOOS=linux GOARCH=s390x make golden
cp bin/golden_* cmd/golden/
- name: Push golden to Github packages
uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7
with:
context: cmd/golden
push: true
tags: ghcr.io/open-telemetry/opentelemetry-collector-contrib/golden:latest
platforms: linux/amd64,linux/arm64,linux/s390x,linux/ppc64le
- run: ./.github/workflows/scripts/check-disk-space.sh
publish-stable:
runs-on: ubuntu-24.04
if: startsWith(github.ref, 'refs/tags/v') && github.repository == 'open-telemetry/opentelemetry-collector-contrib'
permissions:
packages: write
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- uses: ./.github/actions/setup-go-tools
with:
go-version: oldstable
- name: Set up QEMU
uses: docker/setup-qemu-action@06116385d9baf250c9f4dcb4858b16962ea869c3 # v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4
- name: Set Release Tag
id: github_tag
run: ./.github/workflows/scripts/set_release_tag.sh
- name: Login to GitHub Container Registry
uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build binaries
run: |
GOOS=linux GOARCH=ppc64le make golden
GOOS=linux GOARCH=arm64 make golden
GOOS=linux GOARCH=amd64 make golden
GOOS=linux GOARCH=s390x make golden
cp bin/golden_* cmd/golden/
- name: Push golden to Github packages
uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7
with:
context: cmd/golden
push: true
tags: ghcr.io/open-telemetry/opentelemetry-collector-contrib/golden:${{ steps.github_tag.outputs.tag }}
platforms: linux/amd64,linux/arm64,linux/s390x,linux/ppc64le
- run: ./.github/workflows/scripts/check-disk-space.sh