Skip to content

Commit

Permalink
move pipeline code to separate workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz Wiesinger <[email protected]>
  • Loading branch information
mowies committed Jul 30, 2024
1 parent f78e2f7 commit 2748861
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 50 deletions.
31 changes: 6 additions & 25 deletions .github/workflows/ci-goreleaser-contrib.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,29 +32,10 @@ jobs:
goarch: '[ "386", "amd64", "arm64", "ppc64le", "arm", "s390x" ]'
secrets: inherit

# package-tests:
# name: Package tests
# needs: check-goreleaser
# uses: ./.github/workflows/package-test.yaml
# with:
# distribution: otelcol
# type: '[ "deb", "rpm" ]'
package-tests:
name: Package Tests
runs-on: ubuntu-latest
needs: check-goreleaser
strategy:
matrix:
type: ["deb", "rpm"]
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Download built artifacts
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: linux-packages

- name: Test ${{ matrix.type }} package
run: ./scripts/package-tests/package-tests.sh ./otelcol*-SNAPSHOT-*_linux_amd64.${{ matrix.type }} otelcol-contrib

name: Package tests
needs: check-goreleaser
uses: ./.github/workflows/package-test.yaml
with:
distribution: otelcol-contrib
type: '[ "deb", "rpm" ]'
31 changes: 6 additions & 25 deletions .github/workflows/ci-goreleaser-core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,29 +33,10 @@ jobs:
goarch: '[ "386", "amd64", "arm64", "ppc64le", "arm", "s390x" ]'
secrets: inherit

# package-tests:
# name: Package tests
# needs: check-goreleaser
# uses: ./.github/workflows/package-test.yaml
# with:
# distribution: otelcol
# type: '[ "deb", "rpm" ]'
package-tests:
name: Package Tests
runs-on: ubuntu-latest
needs: check-goreleaser
strategy:
matrix:
type: ["deb", "rpm"]
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Download built artifacts
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: linux-packages

- name: Test ${{ matrix.type }} package
run: ./scripts/package-tests/package-tests.sh ./otelcol*-SNAPSHOT-*_linux_amd64.${{ matrix.type }} otelcol

name: Package tests
needs: check-goreleaser
uses: ./.github/workflows/package-test.yaml
with:
distribution: otelcol
type: '[ "deb", "rpm" ]'

0 comments on commit 2748861

Please sign in to comment.