Skip to content

Commit

Permalink
Merge pull request #179 from galasa-dev/add-simplatform-to-build-chain
Browse files Browse the repository at this point in the history
Add simplatform into build chain
  • Loading branch information
jadecarino authored Sep 27, 2024
2 parents 2fbcf1f + 4751edc commit 4db22d7
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -557,8 +557,8 @@ jobs:
dockerRepository=${{ env.REGISTRY }}
platform=x86_64
trigger-workflow:
name: Trigger workflow depending upon the branch
trigger-next-workflows:
name: Trigger next workflows in the build chain
needs: [build-obr, build-obr-generic, build-obr-javadocs]
runs-on: ubuntu-latest

Expand All @@ -575,4 +575,23 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GALASA_TEAM_GITHUB_TOKEN }}
run: |
gh workflow run build.yml --repo https://github.com/galasa-dev/cli --ref ${{ env.BRANCH }}
gh workflow run build.yml --repo https://github.com/galasa-dev/cli --ref ${{ env.BRANCH }}
- name: Triggering simplatform build
env:
GH_TOKEN: ${{ secrets.GALASA_TEAM_GITHUB_TOKEN }}
run: |
gh workflow run build.yaml --repo https://github.com/galasa-dev/simplatform --ref ${{ env.BRANCH }}
report-failure:
name: Report failure in workflow
runs-on: ubuntu-latest
needs: [log-github-ref, build-obr, build-obr-javadocs, build-obr-generic, trigger-next-workflows]
if: failure()

steps:
- name: Report failure in workflow to Slack
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
run : |
docker run --rm -v ${{ github.workspace }}:/var/workspace ghcr.io/galasa-dev/galasabld-ibm:main slackpost workflows --repo "obr" --workflowName "${{ github.workflow }}" --workflowRunNum "${{ github.run_id }}" --ref "${{ env.BRANCH }}" --hook "${{ env.SLACK_WEBHOOK }}"

0 comments on commit 4db22d7

Please sign in to comment.