Skip to content

Commit

Permalink
Merge pull request #974 from MukuFlash03/cicd-fix
Browse files Browse the repository at this point in the history
Fix for redesigned CI/CD pipeline: Added branch in matrix
  • Loading branch information
shankari authored Aug 16, 2024
2 parents f65f94c + 19dd26d commit dea6ff4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/image_build_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ jobs:

strategy:
matrix:
repo: ['e-mission/op-admin-dashboard', 'e-mission/em-public-dashboard']
include:
- repo: e-mission/op-admin-dashboard
branch: master
- repo: e-mission/em-public-dashboard
branch: main

steps:
- uses: actions/checkout@v4
Expand All @@ -75,4 +79,4 @@ jobs:
-H "Authorization: Bearer ${{ secrets.GH_FG_PAT_TAGS }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/${{ matrix.repo }}/actions/workflows/image_build_push.yml/dispatches \
-d '{"ref":"master", "inputs": {"docker_image_tag" : "${{ env.DOCKER_IMAGE_TAG }}"}}'
-d '{"ref":"${{ matrix.branch }}", "inputs": {"docker_image_tag" : "${{ env.DOCKER_IMAGE_TAG }}"}}'

0 comments on commit dea6ff4

Please sign in to comment.