Skip to content

Commit

Permalink
Move trigger on template changes. GUI Inputs for dispatcher
Browse files Browse the repository at this point in the history
- avoid race conditions and building from different commits when both Dockerfiles and the template file are modified.
- define input for the user for the dispatcher workflow
  • Loading branch information
RazvanLiviuVarzaru committed Aug 8, 2024
1 parent b56e3e4 commit 666a608
Show file tree
Hide file tree
Showing 11 changed files with 81 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build-centos-based.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ on:
- 'ci_build_images/qpress.Dockerfile'
- 'ci_build_images/buildbot-worker.Dockerfile'
- .github/workflows/build-centos-based.yml
- .github/workflows/bbw_build_container_template.yml
pull_request:
paths:
- 'ci_build_images/centos.Dockerfile'
- 'ci_build_images/qpress.Dockerfile'
- 'ci_build_images/buildbot-worker.Dockerfile'
- .github/workflows/build-centos-based.yml
- .github/workflows/bbw_build_container_template.yml
workflow_call:

jobs:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-centos.pip-based.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ on:
- 'ci_build_images/qpress.Dockerfile'
- 'ci_build_images/buildbot-worker.Dockerfile'
- .github/workflows/build-centos.pip-based.yml
- .github/workflows/bbw_build_container_template.yml
pull_request:
paths:
- 'ci_build_images/centos.Dockerfile'
- 'ci_build_images/pip.Dockerfile'
- 'ci_build_images/qpress.Dockerfile'
- 'ci_build_images/buildbot-worker.Dockerfile'
- .github/workflows/build-centos.pip-based.yml
- .github/workflows/bbw_build_container_template.yml

workflow_call:

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-centos7.pip-based.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ on:
- 'ci_build_images/qpress.Dockerfile'
- 'ci_build_images/buildbot-worker.Dockerfile'
- .github/workflows/build-centos7.pip-based.yml
- .github/workflows/bbw_build_container_template.yml
pull_request:
paths:
- 'ci_build_images/centos7.Dockerfile'
- 'ci_build_images/pip.Dockerfile'
- 'ci_build_images/qpress.Dockerfile'
- 'ci_build_images/buildbot-worker.Dockerfile'
- .github/workflows/build-centos7.pip-based.yml
- .github/workflows/bbw_build_container_template.yml
workflow_call:

jobs:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-debian-based.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ on:
- 'ci_build_images/qpress.Dockerfile'
- 'ci_build_images/buildbot-worker.Dockerfile'
- .github/workflows/build-debian-based.yml
- .github/workflows/bbw_build_container_template.yml
pull_request:
paths:
- 'ci_build_images/debian.Dockerfile'
- 'ci_build_images/qpress.Dockerfile'
- 'ci_build_images/buildbot-worker.Dockerfile'
- .github/workflows/build-debian-based.yml
- .github/workflows/bbw_build_container_template.yml

workflow_call:

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-debian.aocc-based.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ on:
- 'ci_build_images/qpress.Dockerfile'
- 'ci_build_images/buildbot-worker.Dockerfile'
- .github/workflows/build-debian.aocc-based.yml
- .github/workflows/bbw_build_container_template.yml
pull_request:
paths:
- 'ci_build_images/debian.Dockerfile'
- 'ci_build_images/aocc.Dockerfile'
- 'ci_build_images/qpress.Dockerfile'
- 'ci_build_images/buildbot-worker.Dockerfile'
- .github/workflows/build-debian.aocc-based.yml
- .github/workflows/bbw_build_container_template.yml
workflow_call:

jobs:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-debian.jepsen-based.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ on:
- 'ci_build_images/qpress.Dockerfile'
- 'ci_build_images/buildbot-worker.Dockerfile'
- .github/workflows/build-debian.jepsen-based.yml
- .github/workflows/bbw_build_container_template.yml
pull_request:
paths:
- 'ci_build_images/debian.Dockerfile'
- 'ci_build_images/jepsen-mariadb.Dockerfile'
- 'ci_build_images/qpress.Dockerfile'
- 'ci_build_images/buildbot-worker.Dockerfile'
- .github/workflows/build-debian.jepsen-based.yml
- .github/workflows/bbw_build_container_template.yml
workflow_call:

jobs:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-debian.msan-based.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ on:
- 'ci_build_images/qpress.Dockerfile'
- 'ci_build_images/buildbot-worker.Dockerfile'
- .github/workflows/build-debian.msan-based.yml
- .github/workflows/bbw_build_container_template.yml
pull_request:
paths:
- 'ci_build_images/debian.Dockerfile'
- 'ci_build_images/msan.Dockerfile'
- 'ci_build_images/qpress.Dockerfile'
- 'ci_build_images/buildbot-worker.Dockerfile'
- .github/workflows/build-debian.msan-based.yml
- .github/workflows/bbw_build_container_template.yml
workflow_call:

jobs:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-fedora-based.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ on:
- 'ci_build_images/qpress.Dockerfile'
- 'ci_build_images/buildbot-worker.Dockerfile'
- .github/workflows/build-fedora-based.yml
- .github/workflows/bbw_build_container_template.yml
pull_request:
paths:
- 'ci_build_images/fedora.Dockerfile'
- 'ci_build_images/qpress.Dockerfile'
- 'ci_build_images/buildbot-worker.Dockerfile'
- .github/workflows/build-fedora-based.yml
- .github/workflows/bbw_build_container_template.yml
workflow_call:

jobs:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-opensuse.pip-based.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ on:
- 'ci_build_images/qpress.Dockerfile'
- 'ci_build_images/buildbot-worker.Dockerfile'
- .github/workflows/build-opensuse.pip-based.yml
- .github/workflows/bbw_build_container_template.yml
pull_request:
paths:
- 'ci_build_images/opensuse.Dockerfile'
- 'ci_build_images/pip.Dockerfile'
- 'ci_build_images/qpress.Dockerfile'
- 'ci_build_images/buildbot-worker.Dockerfile'
- .github/workflows/build-opensuse.pip-based.yml
- .github/workflows/bbw_build_container_template.yml
workflow_call:

jobs:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-sles.pip-based.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ on:
- 'ci_build_images/qpress.Dockerfile'
- 'ci_build_images/buildbot-worker.Dockerfile'
- .github/workflows/build-sles.pip-based.yml
- .github/workflows/bbw_build_container_template.yml
pull_request:
paths:
- 'ci_build_images/sles.Dockerfile'
- 'ci_build_images/pip.Dockerfile'
- 'ci_build_images/qpress.Dockerfile'
- 'ci_build_images/buildbot-worker.Dockerfile'
- .github/workflows/build-sles.pip-based.yml
- .github/workflows/bbw_build_container_template.yml

workflow_call:

Expand Down
68 changes: 61 additions & 7 deletions .github/workflows/build-workflow-dispatcher.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,97 @@
name: Dispatch all build container images workflows

on:
push:
paths:
- .github/workflows/bbw_build_container_template.yml
pull_request:
paths:
- .github/workflows/bbw_build_container_template.yml
workflow_dispatch:

inputs:
build-centos-based:
description: 'Run CentOS-based builds'
required: true
default: false
type: boolean
build-centos7pip-based:
description: 'Run CentOS 7 pip-based builds'
required: true
default: false
type: boolean
build-centospip-based:
description: 'Run CentOS pip-based builds'
required: true
default: false
type: boolean
build-debian-based:
description: 'Run Debian based builds'
required: true
default: false
type: boolean
build-debian-aocc-based:
description: 'Run Debian aocc based builds'
required: true
default: false
type: boolean
build-debian-jepsen-based:
description: 'Run Debian jepsen based builds'
required: true
default: false
type: boolean
build-debian-msan-based:
description: 'Run Debian msan based builds'
required: true
default: false
type: boolean
build-fedora-based:
description: 'Run Fedora based builds'
required: true
default: false
type: boolean
build-opensusepip-based:
description: 'Run OpenSUSE pip based builds'
required: true
default: false
type: boolean
build-slespip-based:
description: 'Run SLES pip based builds'
required: true
default: false
type: boolean

jobs:
build-centos-based:
if: ${{ inputs.build-centos-based }}
uses: ./.github/workflows/build-centos-based.yml
secrets: inherit
build-centos7pip-based:
if: ${{ inputs.build-centos7pip-based }}
uses: ./.github/workflows/build-centos7.pip-based.yml
secrets: inherit
build-centospip-based:
if: ${{ inputs.build-centospip-based }}
uses: ./.github/workflows/build-centos.pip-based.yml
secrets: inherit
build-debian-based:
if: ${{ inputs.build-debian-based }}
uses: ./.github/workflows/build-debian-based.yml
secrets: inherit
build-debian-aocc-based:
if: ${{ inputs.build-debian-aocc-based }}
uses: ./.github/workflows/build-debian.aocc-based.yml
secrets: inherit
build-debian-jepsen-based:
if: ${{ inputs.build-debian-jepsen-based }}
uses: ./.github/workflows/build-debian.jepsen-based.yml
secrets: inherit
build-debian-msan-based:
if: ${{ inputs.build-debian-msan-based }}
uses: ./.github/workflows/build-debian.msan-based.yml
secrets: inherit
build-fedora-based:
if: ${{ inputs.build-fedora-based }}
uses: ./.github/workflows/build-fedora-based.yml
secrets: inherit
build-opensusepip-based:
if: ${{ inputs.build-opensusepip-based }}
uses: ./.github/workflows/build-opensuse.pip-based.yml
secrets: inherit
build-slespip-based:
if: ${{ inputs.build-slespip-based }}
uses: ./.github/workflows/build-sles.pip-based.yml
secrets: inherit

0 comments on commit 666a608

Please sign in to comment.