Skip to content

Commit

Permalink
DBP-0000-improve-speed-of-pipeline (#8)
Browse files Browse the repository at this point in the history
DBP-0000-improve-speed-of-pipeline (#8)
  • Loading branch information
aimee-889 authored Nov 4, 2024
1 parent 603344c commit 2115d6e
Showing 1 changed file with 20 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ jobs:

select_helm_version_generation_and_image_tag_generation:
if: ${{ github.event_name == 'push' && !startsWith(github.ref_name,'dependabot/') }}
needs:
- scan_helm
runs-on: ubuntu-latest
outputs:
SELECT_HELM_VERION_GENERATION: ${{ steps.select_generation.outputs.SELECT_HELM_VERION_GENERATION }}
Expand All @@ -39,6 +37,7 @@ jobs:
echo "SELECT_HELM_VERION_GENERATION=ticket_from_branch_timestamp" >> "$GITHUB_OUTPUT"
echo "SELECT_IMAGE_TAG_GENERATION=ticket_from_branch" >> "$GITHUB_OUTPUT"
fi
release_helm:
if: ${{ github.event_name == 'push' && !startsWith(github.ref_name,'dependabot/') }}
needs:
Expand All @@ -50,6 +49,15 @@ jobs:
helm_chart_version_generation: ${{ needs. select_helm_version_generation_and_image_tag_generation.outputs.SELECT_HELM_VERION_GENERATION }}
image_tag_generation: ${{ needs. select_helm_version_generation_and_image_tag_generation.outputs.SELECT_IMAGE_TAG_GENERATION }}

wait_for_helm_chart_to_get_published:
needs:
- release_helm
runs-on: ubuntu-latest
steps:
- shell: bash
run: |
sleep 1m
branch_meta:
if: ${{ github.event_name == 'push' && !startsWith(github.ref_name,'dependabot/') }}
uses: dBildungsplattform/spsh-app-deploy/.github/workflows/get-branch-meta.yml@3
Expand All @@ -62,15 +70,6 @@ jobs:
with:
branch: ${{ needs.branch_meta.outputs.branch }}

wait_for_helm_chart_to_get_published:
needs:
- release_helm
runs-on: ubuntu-latest
steps:
- shell: bash
run: |
sleep 1m
deploy:
if: ${{ github.event_name == 'push' && !startsWith(github.ref_name,'dependabot/') }}
needs:
Expand All @@ -86,6 +85,16 @@ jobs:
namespace: ${{ needs.create_branch_identifier.outputs.namespace_from_branch }}
secrets: inherit

all_tests_successfull:
needs:
- scan_helm
- deploy
runs-on: ubuntu-latest
steps:
- shell: bash
run: echo "All necessary Tests have been executed"

# On Delete
create_branch_identifier_for_deletion:
if: ${{ github.event_name == 'delete' && github.event.ref_type == 'branch' }}
uses: dBildungsplattform/spsh-app-deploy/.github/workflows/deploy-branch-to-namespace.yml@3
Expand Down

0 comments on commit 2115d6e

Please sign in to comment.