|
1 | 1 | name: Release OpAMP supervisor |
| 2 | + |
2 | 3 | on: |
3 | 4 | push: |
4 | | - tags: |
5 | | - - "v*" |
6 | | - |
7 | | -env: |
8 | | - # renovate: datasource=github-tags depName=goreleaser-pro packageName=goreleaser/goreleaser-pro |
9 | | - GORELEASER_PRO_VERSION: v2.7.0 |
| 5 | + tags: ["v*"] |
10 | 6 |
|
11 | 7 | jobs: |
12 | | - goreleaser: |
13 | | - runs-on: ubuntu-latest |
14 | | - |
15 | | - permissions: |
16 | | - id-token: write |
17 | | - packages: write |
18 | | - contents: write |
19 | | - |
20 | | - steps: |
21 | | - - name: Checkout Releases Repo |
22 | | - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
23 | | - with: |
24 | | - fetch-depth: 0 |
25 | | - - name: Push cmd/opampsupervisor Tag |
26 | | - run: | |
27 | | - tag="cmd/opampsupervisor/${{ github.ref_name }}" |
28 | | - message="Releasing OpAMP supervisor binaries for ${{ github.ref_name }}" |
29 | | - git config user.name "${GITHUB_ACTOR}" |
30 | | - git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" |
31 | | - git tag -a "${tag}" -m "${message}" |
32 | | - git push origin "${tag}" |
33 | | - - name: Checkout Contrib Repo |
34 | | - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
35 | | - with: |
36 | | - fetch-depth: 0 |
37 | | - repository: "open-telemetry/opentelemetry-collector-contrib" |
38 | | - ref: ${{ github.ref_name }} |
39 | | - path: ".contrib" |
40 | | - - name: Copy Dockerfile to Contrib Repo directory |
41 | | - run: cp cmd/opampsupervisor/Dockerfile .contrib/cmd/opampsupervisor/Dockerfile |
42 | | - - uses: sigstore/cosign-installer@d58896d6a1865668819e1d91763c7751a165e159 # v3.9.2 |
43 | | - - uses: anchore/sbom-action/download-syft@cee1b8e05ae5b2593a75e197229729eabaa9f8ec # v0.20.2 |
44 | | - - uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0 |
45 | | - with: |
46 | | - platforms: amd64, arm64,ppc64le |
47 | | - - uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1 |
48 | | - - name: Setup Go |
49 | | - uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 |
50 | | - with: |
51 | | - go-version: "~1.24" |
52 | | - - name: Log into Docker.io |
53 | | - uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0 |
54 | | - with: |
55 | | - username: ${{ secrets.DOCKER_USERNAME }} |
56 | | - password: ${{ secrets.DOCKER_PASSWORD }} |
57 | | - - name: Login to GitHub Package Registry |
58 | | - uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0 |
59 | | - with: |
60 | | - registry: ghcr.io |
61 | | - username: ${{ github.repository_owner }} |
62 | | - password: ${{ 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: release --clean -f cmd/opampsupervisor/.goreleaser.yml |
69 | | - env: |
70 | | - GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} |
71 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
72 | | - COSIGN_YES: true |
73 | | - SKIP_SIGNS: false |
| 8 | + release: |
| 9 | + name: Release OpAMP supervisor |
| 10 | + uses: ./.github/workflows/base-binary-release.yaml |
| 11 | + with: |
| 12 | + binary: opampsupervisor |
| 13 | + collector-dependency: 'open-telemetry/opentelemetry-collector-contrib' |
| 14 | + dependency-target-folder: '.contrib' |
| 15 | + secrets: inherit |
| 16 | + permissions: write-all |
0 commit comments