Skip to content

Commit 86c27d9

Browse files
committed
parameterise workflow
1 parent 7745a87 commit 86c27d9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/base-ci-binary.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,23 +32,23 @@ jobs:
3232
with:
3333
fetch-depth: 0
3434

35-
- name: Checkout Core Repo
35+
- name: Checkout Collector dependency repo
3636
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3737
with:
3838
fetch-depth: 0
39-
repository: "open-telemetry/opentelemetry-collector"
40-
path: ".core"
39+
repository: ${{ inputs.collector-dependency }}
40+
path: ${{ inputs.dependency-target-folder }}
4141

4242
- name: Copy Dockerfile to Core Repo directory
43-
run: cp cmd/builder/Dockerfile .core/cmd/builder/Dockerfile
43+
run: cp cmd/${{ inputs.binary }}/Dockerfile .core/cmd/${{ inputs.binary }}/Dockerfile
4444

4545
- uses: sigstore/cosign-installer@d58896d6a1865668819e1d91763c7751a165e159 # v3.9.2
4646

4747
- uses: anchore/sbom-action/download-syft@7b36ad622f042cab6f59a75c2ac24ccb256e9b45 # v0.20.4
4848

4949
- uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
5050
with:
51-
platforms: amd64, arm64,ppc64le
51+
platforms: amd64,arm64,ppc64le
5252

5353
- uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
5454

@@ -62,7 +62,7 @@ jobs:
6262
with:
6363
distribution: goreleaser-pro
6464
version: ${{ env.GORELEASER_PRO_VERSION }}
65-
args: check --verbose -f cmd/builder/.goreleaser.yml
65+
args: check --verbose -f cmd/${{ inputs.binary }}/.goreleaser.yml
6666
env:
6767
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
6868
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -72,7 +72,7 @@ jobs:
7272
with:
7373
distribution: goreleaser-pro
7474
version: ${{ env.GORELEASER_PRO_VERSION }}
75-
args: --snapshot --clean -f cmd/builder/.goreleaser.yml
75+
args: --snapshot --clean -f cmd/${{ inputs.binary }}/.goreleaser.yml
7676
env:
7777
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
7878
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)