-
Notifications
You must be signed in to change notification settings - Fork 215
Migrate ocb binary release to opentelemetry-collector-releases (see corresponding PR#10710 in opentelemetry-collector repo) #608
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 7 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
e782926
Migrate ocb binary release to opentelemetry-collector-releases #608
jackgopack4 19edec0
incorporate evan-bradley suggestions
jackgopack4 e3f81e5
remove hardcoded repo checkout for self repo
jackgopack4 be0e050
add jackgopack4 reference
jackgopack4 a7bd42d
Revert "add jackgopack4 reference"
jackgopack4 bf63bbb
add flags to go install command
jackgopack4 b0bfefc
Merge branch 'main' into main
mx-psi 02c80bd
add module aware mode to makefile for ocb
jackgopack4 bfd2fa4
remove debug line
jackgopack4 c73bdbc
Revert "add module aware mode to makefile for ocb"
jackgopack4 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| name: Builder - Release | ||
| on: | ||
| push: | ||
| tags: | ||
| - "v*" | ||
|
|
||
| jobs: | ||
| goreleaser: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout Releases Repo | ||
| uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
| with: | ||
| fetch-depth: 0 | ||
| - run: ls -la | ||
| - name: Push cmd/builder Tag | ||
jackgopack4 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| run: | | ||
| tag="cmd/builder/${{ github.ref_name }}" | ||
| message="Releasing ocb binaries for ${{ github.ref_name }}" | ||
| git config user.name "${GITHUB_ACTOR}" | ||
| git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" | ||
| git tag -a "${tag}" -m "${message}" | ||
| git push origin "${tag}" | ||
| - name: Checkout Core Repo | ||
| uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
| with: | ||
| fetch-depth: 0 | ||
| repository: "open-telemetry/opentelemetry-collector" | ||
| ref: ${{ github.ref_name }} | ||
| path: ".core" | ||
| - name: Setup Go | ||
| uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 | ||
| with: | ||
| go-version: ~1.21.5 | ||
| - name: Run GoReleaser | ||
| uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0 | ||
| with: | ||
| distribution: goreleaser-pro | ||
| version: latest | ||
| args: release --clean -f cmd/builder/.goreleaser.yml | ||
| env: | ||
| GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| name: Builder - Check and Test Build | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| paths: | ||
| - "distributions/otelcol-contrib/**" | ||
| - "cmd/**" | ||
| - ".github/**" | ||
| - "scripts/**" | ||
| - "Makefile" | ||
| - "go.mod" | ||
| - "go.sum" | ||
| pull_request: | ||
| branches: [main] | ||
| paths: | ||
| - "distributions/otelcol-contrib/**" | ||
| - "cmd/**" | ||
| - ".github/**" | ||
| - "scripts/**" | ||
| - "Makefile" | ||
| - "go.mod" | ||
| - "go.sum" | ||
|
|
||
| jobs: | ||
| check-goreleaser: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout Releases Repo | ||
| uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
| with: | ||
| fetch-depth: 0 | ||
| - name: Checkout Core Repo | ||
| uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
| with: | ||
| fetch-depth: 0 | ||
| repository: "open-telemetry/opentelemetry-collector" | ||
| path: ".core" | ||
| - name: Setup Go | ||
| uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 | ||
| with: | ||
| go-version: ~1.21.5 | ||
| - name: Check GoReleaser | ||
| uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0 | ||
| with: | ||
| distribution: goreleaser-pro | ||
| version: latest | ||
| args: check --verbose -f cmd/builder/.goreleaser.yml | ||
| env: | ||
| GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| - name: Run GoReleaser | ||
| uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0 | ||
| with: | ||
| distribution: goreleaser-pro | ||
| version: latest | ||
| args: --snapshot --clean -f cmd/builder/.goreleaser.yml | ||
| env: | ||
| GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
jackgopack4 marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -4,3 +4,4 @@ dist/ | |
| .idea | ||
| .generated-yaml/ | ||
| .vscode | ||
| .core | ||
This file contains hidden or 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
evan-bradley marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| before: | ||
| hooks: | ||
| - go mod download | ||
| monorepo: | ||
| tag_prefix: cmd/builder/ | ||
| dir: .core/cmd/builder | ||
| builds: | ||
| - flags: | ||
| - -trimpath | ||
| ldflags: | ||
| - -s -w | ||
| env: | ||
| - CGO_ENABLED=0 | ||
| goos: | ||
| - linux | ||
| - windows | ||
| - darwin | ||
| goarch: | ||
| - amd64 | ||
| - arm64 | ||
| - ppc64le | ||
| ignore: | ||
| - goos: windows | ||
| goarch: arm64 | ||
| binary: ocb | ||
| release: | ||
| github: | ||
| owner: open-telemetry | ||
| name: opentelemetry-collector-releases | ||
| header: | | ||
| ### Images and binaries here: https://github.com/open-telemetry/opentelemetry-collector-releases/releases/tag/{{ .Tag }} | ||
jackgopack4 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| archives: | ||
| - format: binary | ||
| checksum: | ||
| name_template: "checksums.txt" | ||
| snapshot: | ||
| name_template: "{{ .Tag }}-next" | ||
| changelog: | ||
| disable: true | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.