diff --git a/.github/workflows/action_branch.yml b/.github/workflows/action_branch.yml index c0870e7..5af1cc2 100644 --- a/.github/workflows/action_branch.yml +++ b/.github/workflows/action_branch.yml @@ -54,26 +54,27 @@ jobs: has_refs: ${{ needs.configure.outputs.has_refs }} artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }} flavour: base + run_tests: true secrets: dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }} - base-test: - needs: - - params - - configure - - base - uses: ./.github/workflows/zzz-reuse-test.yml - with: - enabled: true - can_deploy: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-') }} - build_matrix: ${{ needs.configure.outputs.matrix_build }} - has_refs: ${{ needs.configure.outputs.has_refs }} - artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }} - flavour: base - secrets: - dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} - dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }} + #base-test: + # needs: + # - params + # - configure + # - base + # uses: ./.github/workflows/zzz-reuse-test.yml + # with: + # enabled: true + # can_deploy: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-') }} + # build_matrix: ${{ needs.configure.outputs.matrix_build }} + # has_refs: ${{ needs.configure.outputs.has_refs }} + # artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }} + # flavour: base + # secrets: + # dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} + # dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }} # ----------------------------------------------------------------------------------------------- @@ -84,7 +85,6 @@ jobs: - params - configure - base - - base-test uses: ./.github/workflows/zzz-reuse-build.yml with: enabled: true @@ -93,6 +93,7 @@ jobs: has_refs: ${{ needs.configure.outputs.has_refs }} artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }} flavour: mods + run_tests: false secrets: dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }} @@ -102,7 +103,6 @@ jobs: - params - configure - base - - base-test - mods uses: ./.github/workflows/zzz-reuse-test.yml with: @@ -125,7 +125,6 @@ jobs: - params - configure - base - - base-test - mods - mods-test uses: ./.github/workflows/zzz-reuse-build.yml @@ -136,30 +135,31 @@ jobs: has_refs: ${{ needs.configure.outputs.has_refs }} artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }} flavour: prod + run_tests: true secrets: dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }} - prod-test: - needs: - - params - - configure - - base - - base-test - - mods - - mods-test - - prod - uses: ./.github/workflows/zzz-reuse-test.yml - with: - enabled: true - can_deploy: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-') }} - build_matrix: ${{ needs.configure.outputs.matrix_build }} - has_refs: ${{ needs.configure.outputs.has_refs }} - artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }} - flavour: prod - secrets: - dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} - dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }} + #prod-test: + # needs: + # - params + # - configure + # - base + # - base-test + # - mods + # - mods-test + # - prod + # uses: ./.github/workflows/zzz-reuse-test.yml + # with: + # enabled: true + # can_deploy: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-') }} + # build_matrix: ${{ needs.configure.outputs.matrix_build }} + # has_refs: ${{ needs.configure.outputs.has_refs }} + # artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }} + # flavour: prod + # secrets: + # dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} + # dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }} # ----------------------------------------------------------------------------------------------- @@ -170,11 +170,8 @@ jobs: - params - configure - base - - base-test - mods - - mods-test - prod - - prod-test uses: ./.github/workflows/zzz-reuse-build.yml with: enabled: true @@ -183,32 +180,33 @@ jobs: has_refs: ${{ needs.configure.outputs.has_refs }} artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }} flavour: work + run_tests: true secrets: dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }} - work-test: - needs: - - params - - configure - - base - - base-test - - mods - - mods-test - - prod - - prod-test - - work - uses: ./.github/workflows/zzz-reuse-test.yml - with: - enabled: true - can_deploy: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-') }} - build_matrix: ${{ needs.configure.outputs.matrix_build }} - has_refs: ${{ needs.configure.outputs.has_refs }} - artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }} - flavour: work - secrets: - dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} - dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }} + #work-test: + # needs: + # - params + # - configure + # - base + # - base-test + # - mods + # - mods-test + # - prod + # - prod-test + # - work + # uses: ./.github/workflows/zzz-reuse-test.yml + # with: + # enabled: true + # can_deploy: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-') }} + # build_matrix: ${{ needs.configure.outputs.matrix_build }} + # has_refs: ${{ needs.configure.outputs.has_refs }} + # artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }} + # flavour: work + # secrets: + # dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} + # dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }} # ----------------------------------------------------------------------------------------------- @@ -219,13 +217,9 @@ jobs: - params - configure - base - - base-test - mods - - mods-test - prod - - prod-test - work - - work-test uses: ./.github/workflows/zzz-reuse-deploy-images.yml with: enabled: true @@ -246,13 +240,9 @@ jobs: - params - configure - base - - base-test - mods - - mods-test - prod - - prod-test - work - - work-test - push-image uses: ./.github/workflows/zzz-reuse-deploy-manifests.yml with: diff --git a/.github/workflows/action_pull_request.yml b/.github/workflows/action_pull_request.yml index fa26e72..0a4a725 100644 --- a/.github/workflows/action_pull_request.yml +++ b/.github/workflows/action_pull_request.yml @@ -56,26 +56,27 @@ jobs: has_refs: ${{ needs.configure.outputs.has_refs }} artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }} flavour: base + run_tests: true secrets: dockerhub_username: "" dockerhub_password: "" - base-test: - needs: - - params - - configure - - base - uses: ./.github/workflows/zzz-reuse-test.yml - with: - enabled: true - can_deploy: false - build_matrix: ${{ needs.configure.outputs.matrix_build }} - has_refs: ${{ needs.configure.outputs.has_refs }} - artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }} - flavour: base - secrets: - dockerhub_username: "" - dockerhub_password: "" + #base-test: + # needs: + # - params + # - configure + # - base + # uses: ./.github/workflows/zzz-reuse-test.yml + # with: + # enabled: true + # can_deploy: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-') }} + # build_matrix: ${{ needs.configure.outputs.matrix_build }} + # has_refs: ${{ needs.configure.outputs.has_refs }} + # artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }} + # flavour: base + # secrets: + # dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} + # dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }} # ----------------------------------------------------------------------------------------------- @@ -86,7 +87,6 @@ jobs: - params - configure - base - - base-test uses: ./.github/workflows/zzz-reuse-build.yml with: enabled: true @@ -95,6 +95,7 @@ jobs: has_refs: ${{ needs.configure.outputs.has_refs }} artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }} flavour: mods + run_tests: false secrets: dockerhub_username: "" dockerhub_password: "" @@ -104,7 +105,6 @@ jobs: - params - configure - base - - base-test - mods uses: ./.github/workflows/zzz-reuse-test.yml with: @@ -127,7 +127,6 @@ jobs: - params - configure - base - - base-test - mods - mods-test uses: ./.github/workflows/zzz-reuse-build.yml @@ -138,30 +137,31 @@ jobs: has_refs: ${{ needs.configure.outputs.has_refs }} artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }} flavour: prod + run_tests: true secrets: dockerhub_username: "" dockerhub_password: "" - prod-test: - needs: - - params - - configure - - base - - base-test - - mods - - mods-test - - prod - uses: ./.github/workflows/zzz-reuse-test.yml - with: - enabled: true - can_deploy: false - build_matrix: ${{ needs.configure.outputs.matrix_build }} - has_refs: ${{ needs.configure.outputs.has_refs }} - artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }} - flavour: prod - secrets: - dockerhub_username: "" - dockerhub_password: "" + #prod-test: + # needs: + # - params + # - configure + # - base + # - base-test + # - mods + # - mods-test + # - prod + # uses: ./.github/workflows/zzz-reuse-test.yml + # with: + # enabled: true + # can_deploy: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-') }} + # build_matrix: ${{ needs.configure.outputs.matrix_build }} + # has_refs: ${{ needs.configure.outputs.has_refs }} + # artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }} + # flavour: prod + # secrets: + # dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} + # dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }} # ----------------------------------------------------------------------------------------------- @@ -172,11 +172,8 @@ jobs: - params - configure - base - - base-test - mods - - mods-test - prod - - prod-test uses: ./.github/workflows/zzz-reuse-build.yml with: enabled: true @@ -185,32 +182,33 @@ jobs: has_refs: ${{ needs.configure.outputs.has_refs }} artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }} flavour: work + run_tests: true secrets: dockerhub_username: "" dockerhub_password: "" - work-test: - needs: - - params - - configure - - base - - base-test - - mods - - mods-test - - prod - - prod-test - - work - uses: ./.github/workflows/zzz-reuse-test.yml - with: - enabled: true - can_deploy: false - build_matrix: ${{ needs.configure.outputs.matrix_build }} - has_refs: ${{ needs.configure.outputs.has_refs }} - artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }} - flavour: work - secrets: - dockerhub_username: "" - dockerhub_password: "" + #work-test: + # needs: + # - params + # - configure + # - base + # - base-test + # - mods + # - mods-test + # - prod + # - prod-test + # - work + # uses: ./.github/workflows/zzz-reuse-test.yml + # with: + # enabled: true + # can_deploy: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-') }} + # build_matrix: ${{ needs.configure.outputs.matrix_build }} + # has_refs: ${{ needs.configure.outputs.has_refs }} + # artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }} + # flavour: work + # secrets: + # dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} + # dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }} # ----------------------------------------------------------------------------------------------- @@ -221,13 +219,9 @@ jobs: - params - configure - base - - base-test - mods - - mods-test - prod - - prod-test - work - - work-test uses: ./.github/workflows/zzz-reuse-deploy-images.yml with: enabled: true @@ -248,13 +242,9 @@ jobs: - params - configure - base - - base-test - mods - - mods-test - prod - - prod-test - work - - work-test - push-image uses: ./.github/workflows/zzz-reuse-deploy-manifests.yml with: diff --git a/.github/workflows/action_schedule_master.yml b/.github/workflows/action_schedule_master.yml index d652841..9d4db68 100644 --- a/.github/workflows/action_schedule_master.yml +++ b/.github/workflows/action_schedule_master.yml @@ -56,26 +56,27 @@ jobs: has_refs: ${{ needs.configure.outputs.has_refs }} artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }} flavour: base + run_tests: true secrets: dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }} - base-test: - needs: - - params - - configure - - base - uses: ./.github/workflows/zzz-reuse-test.yml - with: - enabled: true - can_deploy: true - build_matrix: ${{ needs.configure.outputs.matrix_build }} - has_refs: ${{ needs.configure.outputs.has_refs }} - artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }} - flavour: base - secrets: - dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} - dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }} + #base-test: + # needs: + # - params + # - configure + # - base + # uses: ./.github/workflows/zzz-reuse-test.yml + # with: + # enabled: true + # can_deploy: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-') }} + # build_matrix: ${{ needs.configure.outputs.matrix_build }} + # has_refs: ${{ needs.configure.outputs.has_refs }} + # artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }} + # flavour: base + # secrets: + # dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} + # dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }} # ----------------------------------------------------------------------------------------------- @@ -86,7 +87,6 @@ jobs: - params - configure - base - - base-test uses: ./.github/workflows/zzz-reuse-build.yml with: enabled: true @@ -95,6 +95,7 @@ jobs: has_refs: ${{ needs.configure.outputs.has_refs }} artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }} flavour: mods + run_tests: false secrets: dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }} @@ -104,7 +105,6 @@ jobs: - params - configure - base - - base-test - mods uses: ./.github/workflows/zzz-reuse-test.yml with: @@ -127,7 +127,6 @@ jobs: - params - configure - base - - base-test - mods - mods-test uses: ./.github/workflows/zzz-reuse-build.yml @@ -138,30 +137,31 @@ jobs: has_refs: ${{ needs.configure.outputs.has_refs }} artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }} flavour: prod + run_tests: true secrets: dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }} - prod-test: - needs: - - params - - configure - - base - - base-test - - mods - - mods-test - - prod - uses: ./.github/workflows/zzz-reuse-test.yml - with: - enabled: true - can_deploy: true - build_matrix: ${{ needs.configure.outputs.matrix_build }} - has_refs: ${{ needs.configure.outputs.has_refs }} - artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }} - flavour: prod - secrets: - dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} - dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }} + #prod-test: + # needs: + # - params + # - configure + # - base + # - base-test + # - mods + # - mods-test + # - prod + # uses: ./.github/workflows/zzz-reuse-test.yml + # with: + # enabled: true + # can_deploy: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-') }} + # build_matrix: ${{ needs.configure.outputs.matrix_build }} + # has_refs: ${{ needs.configure.outputs.has_refs }} + # artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }} + # flavour: prod + # secrets: + # dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} + # dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }} # ----------------------------------------------------------------------------------------------- @@ -172,11 +172,8 @@ jobs: - params - configure - base - - base-test - mods - - mods-test - prod - - prod-test uses: ./.github/workflows/zzz-reuse-build.yml with: enabled: true @@ -185,32 +182,33 @@ jobs: has_refs: ${{ needs.configure.outputs.has_refs }} artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }} flavour: work + run_tests: true secrets: dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }} - work-test: - needs: - - params - - configure - - base - - base-test - - mods - - mods-test - - prod - - prod-test - - work - uses: ./.github/workflows/zzz-reuse-test.yml - with: - enabled: true - can_deploy: true - build_matrix: ${{ needs.configure.outputs.matrix_build }} - has_refs: ${{ needs.configure.outputs.has_refs }} - artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }} - flavour: work - secrets: - dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} - dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }} + #work-test: + # needs: + # - params + # - configure + # - base + # - base-test + # - mods + # - mods-test + # - prod + # - prod-test + # - work + # uses: ./.github/workflows/zzz-reuse-test.yml + # with: + # enabled: true + # can_deploy: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-') }} + # build_matrix: ${{ needs.configure.outputs.matrix_build }} + # has_refs: ${{ needs.configure.outputs.has_refs }} + # artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }} + # flavour: work + # secrets: + # dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} + # dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }} # ----------------------------------------------------------------------------------------------- @@ -221,13 +219,9 @@ jobs: - params - configure - base - - base-test - mods - - mods-test - prod - - prod-test - work - - work-test uses: ./.github/workflows/zzz-reuse-deploy-images.yml with: enabled: true @@ -248,13 +242,9 @@ jobs: - params - configure - base - - base-test - mods - - mods-test - prod - - prod-test - work - - work-test - push-image uses: ./.github/workflows/zzz-reuse-deploy-manifests.yml with: diff --git a/.github/workflows/action_schedule_tags.yml b/.github/workflows/action_schedule_tags.yml index e9a9adb..557ef10 100644 --- a/.github/workflows/action_schedule_tags.yml +++ b/.github/workflows/action_schedule_tags.yml @@ -56,26 +56,27 @@ jobs: has_refs: ${{ needs.configure.outputs.has_refs }} artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }} flavour: base + run_tests: true secrets: dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }} - base-test: - needs: - - params - - configure - - base - uses: ./.github/workflows/zzz-reuse-test.yml - with: - enabled: true - can_deploy: true - build_matrix: ${{ needs.configure.outputs.matrix_build }} - has_refs: ${{ needs.configure.outputs.has_refs }} - artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }} - flavour: base - secrets: - dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} - dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }} + #base-test: + # needs: + # - params + # - configure + # - base + # uses: ./.github/workflows/zzz-reuse-test.yml + # with: + # enabled: true + # can_deploy: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-') }} + # build_matrix: ${{ needs.configure.outputs.matrix_build }} + # has_refs: ${{ needs.configure.outputs.has_refs }} + # artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }} + # flavour: base + # secrets: + # dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} + # dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }} # ----------------------------------------------------------------------------------------------- @@ -86,7 +87,6 @@ jobs: - params - configure - base - - base-test uses: ./.github/workflows/zzz-reuse-build.yml with: enabled: true @@ -95,6 +95,7 @@ jobs: has_refs: ${{ needs.configure.outputs.has_refs }} artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }} flavour: mods + run_tests: false secrets: dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }} @@ -104,7 +105,6 @@ jobs: - params - configure - base - - base-test - mods uses: ./.github/workflows/zzz-reuse-test.yml with: @@ -127,7 +127,6 @@ jobs: - params - configure - base - - base-test - mods - mods-test uses: ./.github/workflows/zzz-reuse-build.yml @@ -138,30 +137,31 @@ jobs: has_refs: ${{ needs.configure.outputs.has_refs }} artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }} flavour: prod + run_tests: true secrets: dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }} - prod-test: - needs: - - params - - configure - - base - - base-test - - mods - - mods-test - - prod - uses: ./.github/workflows/zzz-reuse-test.yml - with: - enabled: true - can_deploy: true - build_matrix: ${{ needs.configure.outputs.matrix_build }} - has_refs: ${{ needs.configure.outputs.has_refs }} - artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }} - flavour: prod - secrets: - dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} - dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }} + #prod-test: + # needs: + # - params + # - configure + # - base + # - base-test + # - mods + # - mods-test + # - prod + # uses: ./.github/workflows/zzz-reuse-test.yml + # with: + # enabled: true + # can_deploy: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-') }} + # build_matrix: ${{ needs.configure.outputs.matrix_build }} + # has_refs: ${{ needs.configure.outputs.has_refs }} + # artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }} + # flavour: prod + # secrets: + # dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} + # dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }} # ----------------------------------------------------------------------------------------------- @@ -172,11 +172,8 @@ jobs: - params - configure - base - - base-test - mods - - mods-test - prod - - prod-test uses: ./.github/workflows/zzz-reuse-build.yml with: enabled: true @@ -185,32 +182,33 @@ jobs: has_refs: ${{ needs.configure.outputs.has_refs }} artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }} flavour: work + run_tests: true secrets: dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }} - work-test: - needs: - - params - - configure - - base - - base-test - - mods - - mods-test - - prod - - prod-test - - work - uses: ./.github/workflows/zzz-reuse-test.yml - with: - enabled: true - can_deploy: true - build_matrix: ${{ needs.configure.outputs.matrix_build }} - has_refs: ${{ needs.configure.outputs.has_refs }} - artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }} - flavour: work - secrets: - dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} - dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }} + #work-test: + # needs: + # - params + # - configure + # - base + # - base-test + # - mods + # - mods-test + # - prod + # - prod-test + # - work + # uses: ./.github/workflows/zzz-reuse-test.yml + # with: + # enabled: true + # can_deploy: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-') }} + # build_matrix: ${{ needs.configure.outputs.matrix_build }} + # has_refs: ${{ needs.configure.outputs.has_refs }} + # artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }} + # flavour: work + # secrets: + # dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} + # dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }} # ----------------------------------------------------------------------------------------------- @@ -221,13 +219,9 @@ jobs: - params - configure - base - - base-test - mods - - mods-test - prod - - prod-test - work - - work-test uses: ./.github/workflows/zzz-reuse-deploy-images.yml with: enabled: true @@ -248,13 +242,9 @@ jobs: - params - configure - base - - base-test - mods - - mods-test - prod - - prod-test - work - - work-test - push-image uses: ./.github/workflows/zzz-reuse-deploy-manifests.yml with: diff --git a/.github/workflows/zzz-reuse-build.yml b/.github/workflows/zzz-reuse-build.yml index 331f1d3..333cf38 100644 --- a/.github/workflows/zzz-reuse-build.yml +++ b/.github/workflows/zzz-reuse-build.yml @@ -31,6 +31,11 @@ on: description: 'The flavour to build (base, mods, prod or work).' required: true type: string + run_tests: + description: 'Dertermines weather we run integration tests or not.' + required: true + type: boolean + ### ### Secrets ### @@ -170,6 +175,17 @@ jobs: make build VERSION=${{ matrix.version }} FLAVOUR=${{ inputs.flavour }} ARCH=${{ matrix.arch }} + # ------------------------------------------------------------ + # Test + # ------------------------------------------------------------ + - name: Test + uses: cytopia/shell-command-retry-action@v0.1.2 + with: + command: | + make test VERSION=${{ matrix.version }} FLAVOUR=${{ inputs.flavour }} ARCH=${{ matrix.arch }} + if: ${{ inputs.run_tests }} + + # ------------------------------------------------------------ # Artifact Expot (base) # ------------------------------------------------------------