Skip to content

Commit 1f6543e

Browse files
committed
update binary ci workflows to use new one
1 parent 86c27d9 commit 1f6543e

File tree

2 files changed

+19
-99
lines changed

2 files changed

+19
-99
lines changed

.github/workflows/ci-builder.yaml

Lines changed: 9 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: CI - Builder
22

33
on:
4-
merge_group:
4+
merge_group:
55
push:
66
branches: [main]
77
paths:
@@ -23,53 +23,12 @@ on:
2323
- "go.mod"
2424
- "go.sum"
2525

26-
env:
27-
# renovate: datasource=github-tags depName=goreleaser-pro packageName=goreleaser/goreleaser-pro
28-
GORELEASER_PRO_VERSION: v2.7.0
29-
3026
jobs:
31-
check-goreleaser:
32-
runs-on: ubuntu-latest
33-
steps:
34-
- name: Checkout Releases Repo
35-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
36-
with:
37-
fetch-depth: 0
38-
- name: Checkout Core Repo
39-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
40-
with:
41-
fetch-depth: 0
42-
repository: "open-telemetry/opentelemetry-collector"
43-
path: ".core"
44-
- name: Copy Dockerfile to Core Repo directory
45-
run: cp cmd/builder/Dockerfile .core/cmd/builder/Dockerfile
46-
- uses: sigstore/cosign-installer@d58896d6a1865668819e1d91763c7751a165e159 # v3.9.2
47-
- uses: anchore/sbom-action/download-syft@7b36ad622f042cab6f59a75c2ac24ccb256e9b45 # v0.20.4
48-
- uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
49-
with:
50-
platforms: amd64, arm64,ppc64le
51-
- uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
52-
- name: Setup Go
53-
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
54-
with:
55-
go-version: "~1.24"
56-
- name: Check GoReleaser
57-
uses: goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.3.0
58-
with:
59-
distribution: goreleaser-pro
60-
version: ${{ env.GORELEASER_PRO_VERSION }}
61-
args: check --verbose -f cmd/builder/.goreleaser.yml
62-
env:
63-
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
64-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
65-
- name: Run GoReleaser
66-
uses: goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.3.0
67-
with:
68-
distribution: goreleaser-pro
69-
version: ${{ env.GORELEASER_PRO_VERSION }}
70-
args: --snapshot --clean -f cmd/builder/.goreleaser.yml
71-
env:
72-
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
73-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
74-
COSIGN_YES: false
75-
SKIP_SIGNS: true
27+
ci:
28+
uses: ./.github/workflows/base-ci-binary.yaml
29+
with:
30+
binary: builder
31+
collector-dependency: 'open-telemetry/opentelemetry-collector'
32+
dependency-target-folder: '.core'
33+
secrets: inherit
34+
permissions: write-all

.github/workflows/ci-opampsupervisor.yaml

Lines changed: 10 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
push:
66
branches: [main]
77
paths:
8+
- "distributions/otelcol/**"
89
- "cmd/**"
910
- ".github/**"
1011
- "scripts/**"
@@ -14,60 +15,20 @@ on:
1415
pull_request:
1516
branches: [main]
1617
paths:
18+
- "distributions/otelcol/**"
1719
- "cmd/**"
1820
- ".github/**"
1921
- "scripts/**"
2022
- "Makefile"
2123
- "go.mod"
2224
- "go.sum"
2325

24-
env:
25-
# renovate: datasource=github-tags depName=goreleaser-pro packageName=goreleaser/goreleaser-pro
26-
GORELEASER_PRO_VERSION: v2.7.0
27-
2826
jobs:
29-
check-goreleaser:
30-
runs-on: ubuntu-latest
31-
steps:
32-
- name: Checkout Releases Repo
33-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
34-
with:
35-
fetch-depth: 0
36-
- name: Checkout Core Repo
37-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
38-
with:
39-
fetch-depth: 0
40-
repository: "open-telemetry/opentelemetry-collector-contrib"
41-
path: ".contrib"
42-
- name: Copy Dockerfile to Core Repo directory
43-
run: cp cmd/opampsupervisor/Dockerfile .contrib/cmd/opampsupervisor/Dockerfile
44-
- uses: sigstore/cosign-installer@d58896d6a1865668819e1d91763c7751a165e159 # v3.9.2
45-
- uses: anchore/sbom-action/download-syft@7b36ad622f042cab6f59a75c2ac24ccb256e9b45 # v0.20.4
46-
- uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
47-
with:
48-
platforms: amd64, arm64,ppc64le
49-
- uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
50-
- name: Setup Go
51-
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
52-
with:
53-
go-version: "~1.24"
54-
- name: Check GoReleaser
55-
uses: goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.3.0
56-
with:
57-
distribution: goreleaser-pro
58-
version: ${{ env.GORELEASER_PRO_VERSION }}
59-
args: check --verbose -f cmd/opampsupervisor/.goreleaser.yml
60-
env:
61-
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
62-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
63-
- name: Run GoReleaser
64-
uses: goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.3.0
65-
with:
66-
distribution: goreleaser-pro
67-
version: ${{ env.GORELEASER_PRO_VERSION }}
68-
args: --snapshot --clean -f cmd/opampsupervisor/.goreleaser.yml
69-
env:
70-
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
71-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
72-
COSIGN_YES: false
73-
SKIP_SIGNS: true
27+
ci:
28+
uses: ./.github/workflows/base-ci-binary.yaml
29+
with:
30+
binary: opampsupervisor
31+
collector-dependency: 'open-telemetry/opentelemetry-collector-contrib'
32+
dependency-target-folder: '.contrib'
33+
secrets: inherit
34+
permissions: write-all

0 commit comments

Comments
 (0)