Skip to content

Commit

Permalink
Merge pull request #128 from hyperledger/restore_release_image_push
Browse files Browse the repository at this point in the history
restore image build on tag (i.e. release)
  • Loading branch information
Echsecutor committed Apr 23, 2024
2 parents 212f4b7 + 92ebc42 commit 28e6685
Showing 1 changed file with 1 addition and 12 deletions.
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

0 comments on commit 28e6685

Please sign in to comment.