Skip to content

Commit

Permalink
reduce inputs to have less than 10 in GHA workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarak Ben Youssef committed Jan 22, 2024
1 parent 364381d commit dbf96b3
Showing 1 changed file with 4 additions and 26 deletions.
30 changes: 4 additions & 26 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Build Node Docker Images
# This workflow is used to build and push one-off images for specific node types. This is useful
# when deploying hotfixes or any time a change is not needed for all node roles.
name: Build Node Docker Images

on:
workflow_dispatch:
Expand Down Expand Up @@ -42,17 +42,10 @@ on:
type: boolean
description: 'Build `with_adx` images'
required: false
include_without_adx:
type: boolean
description: 'Build `without_adx` images'
required: false
# GHA allows only up to 10 inputs - regroup two entries in one
include_without_netgo_without_adx:
type: boolean
description: 'Build `without_netgo_without_adx` images'
required: false
include_arm:
type: boolean
description: 'Build `without_arm` images'
description: 'Build `without_adx` and `without_netgo_without_adx` images'
required: false

jobs:
Expand Down Expand Up @@ -131,26 +124,11 @@ jobs:
run: |
make docker-build-${{ matrix.role }}-with-adx docker-push-${{ matrix.role }}-with-adx
- name: Build/Push ${{ matrix.role }} images without adx
if: ${{ inputs.include_without_adx }}
env:
IMAGE_TAG: ${{ inputs.docker_tag }}
GITHUB_CREDS: "machine github.com login ${{ secrets.REPO_SYNC_USER }} password ${{ secrets.REPO_SYNC }}"
run: |
make docker-build-${{ matrix.role }}-without-adx docker-push-${{ matrix.role }}-without-adx
- name: Build/Push ${{ matrix.role }} without netgo without adx images
if: ${{ inputs.include_without_netgo_without_adx }}
env:
IMAGE_TAG: ${{ inputs.docker_tag }}
GITHUB_CREDS: "machine github.com login ${{ secrets.REPO_SYNC_USER }} password ${{ secrets.REPO_SYNC }}"
run: |
make docker-build-${{ matrix.role }}-without-adx docker-push-${{ matrix.role }}-without-adx |
make docker-build-${{ matrix.role }}-without-netgo-without-adx docker-push-${{ matrix.role }}-without-netgo-without-adx
- name: Build/Push ${{ matrix.role }} arm images
if: ${{ inputs.include_arm }}
env:
IMAGE_TAG: ${{ inputs.docker_tag }}
GITHUB_CREDS: "machine github.com login ${{ secrets.REPO_SYNC_USER }} password ${{ secrets.REPO_SYNC }}"
run: |
make docker-build-${{ matrix.role }}-arm docker-push-${{ matrix.role }}-arm

0 comments on commit dbf96b3

Please sign in to comment.