|
5 | 5 | push: |
6 | 6 | branches: [main] |
7 | 7 | paths: |
| 8 | + - "distributions/otelcol/**" |
8 | 9 | - "cmd/**" |
9 | 10 | - ".github/**" |
10 | 11 | - "scripts/**" |
|
14 | 15 | pull_request: |
15 | 16 | branches: [main] |
16 | 17 | paths: |
| 18 | + - "distributions/otelcol/**" |
17 | 19 | - "cmd/**" |
18 | 20 | - ".github/**" |
19 | 21 | - "scripts/**" |
20 | 22 | - "Makefile" |
21 | 23 | - "go.mod" |
22 | 24 | - "go.sum" |
23 | 25 |
|
24 | | -env: |
25 | | - # renovate: datasource=github-tags depName=goreleaser-pro packageName=goreleaser/goreleaser-pro |
26 | | - GORELEASER_PRO_VERSION: v2.7.0 |
27 | | - |
28 | 26 | 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