Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

restore image build on tag (i.e. release) #128

Merged
merged 3 commits into from
Apr 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 1 addition & 12 deletions .github/workflows/build-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,18 @@ jobs:
outputs:
repo_owner: ${{ steps.repo_owner.outputs.lowercase }}
os_matrix: "{\"os_version\":[\"debian10\",\"debian11\",\"ubuntu16\",\"ubuntu18\",\"ubuntu20\"]}"
testsNeeded: ${{ steps.testsNeeded.outputs.testsNeeded }}
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Lowercase repo owner
id: repo_owner
run: echo "lowercase=$(echo ${{ github.repository_owner }} | tr \"[:upper:]\" \"[:lower:]\")" >>$GITHUB_OUTPUT
shell: bash
- name: testsNeeded
id: testsNeeded
uses: dorny/paths-filter@v2
with:
filters: |
testsNeeded:
- '!**.md'

build_nodes:
name: Build node images
runs-on: ubuntu-latest
needs: workflow_setup
if: ${{ needs.workflow_setup.outputs.testsNeeded == 'true' }}
strategy:
matrix: ${{ fromJson(needs.workflow_setup.outputs.os_matrix) }}
steps:
Expand Down Expand Up @@ -83,7 +74,6 @@ jobs:
name: Build controller image
runs-on: ubuntu-latest
needs: workflow_setup
if: ${{ needs.workflow_setup.outputs.testsNeeded == 'true' }}
steps:
- name: Check out the repo
uses: actions/checkout@v3
Expand Down Expand Up @@ -120,7 +110,6 @@ jobs:
test_node_and_controller:
runs-on: ubuntu-latest
needs: [workflow_setup, build_controller, build_nodes]
if: ${{ needs.workflow_setup.outputs.testsNeeded == 'true' }}
strategy:
matrix: ${{ fromJson(needs.workflow_setup.outputs.os_matrix) }}
fail-fast: false
Expand Down Expand Up @@ -202,7 +191,7 @@ jobs:
name: statusCheck
runs-on: ubuntu-latest
needs: [workflow_setup, test_node_and_controller]
if: ${{ needs.workflow_setup.outputs.testsNeeded == 'false' || success() }}
if: ${{ success() }}
steps:
- run: 'echo "Just a status Check (Always true, when executed) for branch protection rules(blocks merging while test are running and if tests fail)." '

Expand Down
Loading