Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Molter73 committed Nov 18, 2024
1 parent 1b1132e commit 6db3b7f
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/collector-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
name: Determine if builder image needs to be built
runs-on: ubuntu-24.04
outputs:
build-image: ${{ steps.check-builder.outputs.builder-image }}
build-image: ${{ steps.check-builder.outputs.build-image }}
build-multiarch: ${{ steps.run-multiarch.outputs.run-multiarch }}
collector-builder-tag: ${{ steps.builder-tag.outputs.collector-builder-tag }}

Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
run: |
set -x
function build_builder() {
echo "build-image=$1" == "$GITHUB_OUTPUT"
echo "build-image=$1" >> "$GITHUB_OUTPUT"
exit 0
}
Expand Down Expand Up @@ -90,11 +90,11 @@ jobs:
run: |
set -x
function run_multiarch() {
echo "run-multiarch=true" >> "$GITHUB_OUTPUT"
echo "run-multiarch=$1" >> "$GITHUB_OUTPUT"
exit 0
}
if [[ "${{ steps.check-builder.outputs.build-builder }}" == "false" ]]; then
if [[ "${{ steps.check-builder.outputs.build-image }}" == "false" ]]; then
run_multiarch "false"
fi
Expand Down Expand Up @@ -250,11 +250,7 @@ jobs:
- build-builder-image-remote-vm
name: Create Multiarch manifest
runs-on: ubuntu-24.04
if: |
github.event_name != 'pull_request' || (
needs.builder-needs-rebuilding.outputs.collector-builder-tag != 'master' &&
contains(github.event.pull_request.labels.*.name, 'run-multiarch-builds')
)
if : needs.builder-needs-rebuilding.outputs.build-multiarch == 'true'
env:
COLLECTOR_BUILDER_TAG: ${{ needs.builder-needs-rebuilding.outputs.collector-builder-tag }}
ARCHS: amd64 ppc64le s390x arm64
Expand Down Expand Up @@ -294,10 +290,7 @@ jobs:
- build-builder-image
name: Retag x86 builder image
runs-on: ubuntu-24.04
if: |
github.event_name == 'pull_request' &&
needs.builder-needs-rebuilding.outputs.collector-builder-tag != 'master' &&
!contains(github.event.pull_request.labels.*.name, 'run-multiarch-builds')
if : needs.builder-needs-rebuilding.outputs.build-multiarch == 'false'
env:
COLLECTOR_BUILDER_TAG: ${{ needs.builder-needs-rebuilding.outputs.collector-builder-tag }}
steps:
Expand Down

0 comments on commit 6db3b7f

Please sign in to comment.