Skip to content

Commit

Permalink
Use fastest combinations
Browse files Browse the repository at this point in the history
- amd64: locally
- arm64: remote VM
- s390x: remote VM
- ppc64le: builder on remote, collector image locally
  • Loading branch information
Molter73 committed Mar 14, 2024
1 parent a3dcd90 commit fba6f21
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/collector-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ jobs:
collector_git_ref: ${{ github.ref }}
collector_git_sha: ${{ github.sha }}
collector_builder_tag: ${{ env.COLLECTOR_BUILDER_TAG }}
clone_repository: false
EOF
- name: Build images
Expand Down Expand Up @@ -183,6 +184,7 @@ jobs:
collector_git_ref: ${{ github.ref }}
collector_git_sha: ${{ github.sha }}
collector_builder_tag: ${{ env.COLLECTOR_BUILDER_TAG }}
clone_repository: true
EOF
- name: Build images
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/collector-slim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
strategy:
fail-fast: false
matrix:
arch: [amd64]
arch: [ppc64le, amd64]

env:
PLATFORM: linux/${{ matrix.arch }}
Expand Down Expand Up @@ -66,6 +66,7 @@ jobs:
rhacs_eng_image: ${{ env.RHACS_ENG_IMAGE }}
collector_image: ${{ inputs.collector-image }}
collector_tag: ${{ inputs.collector-tag }}
clone_repository: false
EOF
- name: Build images
Expand All @@ -86,7 +87,7 @@ jobs:
strategy:
fail-fast: false
matrix:
arch: [ppc64le, s390x, arm64]
arch: [s390x, arm64]

env:
PLATFORM: linux/${{ matrix.arch }}
Expand Down Expand Up @@ -139,6 +140,7 @@ jobs:
rhacs_eng_image: ${{ env.RHACS_ENG_IMAGE }}
collector_image: ${{ inputs.collector-image }}
collector_tag: ${{ inputs.collector-tag }}
clone_repository: true
EOF
- name: Build ${{ matrix.arch }} image
Expand Down
2 changes: 1 addition & 1 deletion ansible/ci-build-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
version: "{{ collector_git_sha }}"
refspec: "+{{ collector_git_ref | replace('refs/', '') }}"
recursive: true
when: arch != "amd64"
when: clone_repository

- name: Build the collector builder image
community.general.make:
Expand Down
2 changes: 1 addition & 1 deletion ansible/ci-build-collector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
version: "{{ collector_git_sha }}"
refspec: "+{{ collector_git_ref | replace('refs/', '') }}"
recursive: true
when: arch != "amd64"
when: clone_repository

- name: Run the builder image
community.general.make:
Expand Down

0 comments on commit fba6f21

Please sign in to comment.