Skip to content

Commit

Permalink
Split goreleaser config file (#485)
Browse files Browse the repository at this point in the history
* Split goreleaser config file

* Update project names

* Update checksum specifically

* Remove --id

* Remove old file
  • Loading branch information
TylerHelmuth authored Feb 23, 2024
1 parent cb81f2a commit d98178e
Show file tree
Hide file tree
Showing 14 changed files with 503 additions and 499 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/base-ci-goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ on:

jobs:
check-goreleaser:
name: Check GoReleaser Configuration for ${{ inputs.distribution }}
strategy:
matrix:
GOOS: [ linux, windows, darwin ]
Expand Down Expand Up @@ -57,7 +56,8 @@ jobs:
with:
distribution: goreleaser-pro
version: latest
args: --snapshot --clean --skip-sign --skip-sbom --timeout 2h --split --id ${{ inputs.distribution }}
workdir: distributions/${{ inputs.distribution }}
args: --snapshot --clean --skip-sign --skip-sbom --timeout 2h --split
env:
GOOS: ${{ matrix.GOOS }}
GOARCH: ${{ matrix.GOARCH }}
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/base-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ on:

jobs:
prepare:
name: Prepare ${{ inputs.distribution }} Release
strategy:
matrix:
GOOS: [linux, windows, darwin]
Expand Down Expand Up @@ -74,7 +73,8 @@ jobs:
with:
distribution: goreleaser-pro
version: latest
args: release --clean --split --timeout 2h --id ${{ inputs.distribution }}
workdir: distributions/${{ inputs.distribution }}
args: release --clean --split --timeout 2h
env:
GOOS: ${{ matrix.GOOS }}
GOARCH: ${{ matrix.GOARCH }}
Expand Down Expand Up @@ -137,6 +137,7 @@ jobs:
with:
distribution: goreleaser-pro
version: latest
workdir: distributions/${{ inputs.distribution }}
args: continue --merge --timeout 2h
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/ci-goreleaser-contrib.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@ on:
push:
branches: [main]
paths:
- ".goreleaser.yaml"
- "distributions/otelcol-contrib/manifest.yaml"
- "distributions/otelcol-contrib/**"
pull_request:
branches: [main]
paths:
- ".goreleaser.yaml"
- "distributions/otelcol-contrib/manifest.yaml"
- "distributions/otelcol-contrib/**"

jobs:
check-goreleaser:
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/ci-goreleaser-core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@ on:
push:
branches: [main]
paths:
- ".goreleaser.yaml"
- "distributions/otelcol/manifest.yaml"
- "distributions/otelcol/**"
pull_request:
branches: [main]
paths:
- ".goreleaser.yaml"
- "distributions/otelcol/manifest.yaml"
- "distributions/otelcol/**"


jobs:
Expand Down
Loading

0 comments on commit d98178e

Please sign in to comment.