Skip to content

Commit

Permalink
trigger tests on merge request into master
Browse files Browse the repository at this point in the history
  • Loading branch information
khsa1 committed Jan 21, 2025
1 parent b7aef98 commit dfdd729
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Docker Image CI
on:
release:
types: [released]
pull_request:
branches:
- master
push:
branches:
- dev
Expand All @@ -29,6 +32,8 @@ jobs:
TRAPS_REL=${{ inputs.release_tag }}
elif [[ ${{ github.event_name == 'push' }} == true ]]; then
TRAPS_REL=latest
elif [[ ${{ github.event_name == 'pull_request' }} == true ]]; then
TRAPS_REL=latest
else
TRAPS_REL=${{ github.event.release.tag_name }}
fi
Expand Down Expand Up @@ -65,6 +70,9 @@ jobs:
elif [[ ${{ github.event_name == 'push' }} == true ]]; then
TRAPS_REL=latest
PYEVENTS_BRANCH=main
elif [[ ${{ github.event_name == 'pull_request' }} == true ]]; then
TRAPS_REL=latest
PYEVENTS_BRANCH=main
else
TRAPS_REL=${{ github.event.release.tag_name }}
PYEVENTS_BRANCH=main
Expand Down Expand Up @@ -105,6 +113,9 @@ jobs:
elif [[ ${{ github.event_name == 'push' }} == true ]]; then
TRAPS_REL=latest
PYEVENTS_BRANCH=main
elif [[ ${{ github.event_name == 'pull_request' }} == true ]]; then
TRAPS_REL=latest
PYEVENTS_BRANCH=main
else
TRAPS_REL=${{ github.event.release.tag_name }}
PYEVENTS_BRANCH=main
Expand Down Expand Up @@ -145,6 +156,8 @@ jobs:
TRAPS_REL=${{ inputs.release_tag }}
elif [[ ${{ github.event_name == 'push' }} == true ]]; then
TRAPS_REL=latest
elif [[ ${{ github.event_name == 'pull_request' }} == true ]]; then
TRAPS_REL=latest
else
TRAPS_REL=${{ github.event.release.tag_name }}
fi
Expand Down Expand Up @@ -179,6 +192,8 @@ jobs:
TRAPS_REL=${{ inputs.release_tag }}
elif [[ ${{ github.event_name == 'push' }} == true ]]; then
TRAPS_REL=latest
elif [[ ${{ github.event_name == 'pull_request' }} == true ]]; then
TRAPS_REL=latest
else
TRAPS_REL=${{ github.event.release.tag_name }}
fi
Expand Down Expand Up @@ -214,6 +229,8 @@ jobs:
TRAPS_REL=${{ inputs.release_tag }}
elif [[ ${{ github.event_name == 'push' }} == true ]]; then
TRAPS_REL=latest
elif [[ ${{ github.event_name == 'pull_request' }} == true ]]; then
TRAPS_REL=latest
else
TRAPS_REL=${{ github.event.release.tag_name }}
fi
Expand Down Expand Up @@ -256,6 +273,8 @@ jobs:
TRAPS_REL=${{ inputs.release_tag }}
elif [[ ${{ github.event_name == 'push' }} == true ]]; then
TRAPS_REL=latest
elif [[ ${{ github.event_name == 'pull_request' }} == true ]]; then
TRAPS_REL=latest
else
TRAPS_REL=${{ github.event.release.tag_name }}
fi
Expand Down Expand Up @@ -298,6 +317,8 @@ jobs:
TRAPS_REL=${{ inputs.release_tag }}
elif [[ ${{ github.event_name == 'push' }} == true ]]; then
TRAPS_REL=latest
elif [[ ${{ github.event_name == 'pull_request' }} == true ]]; then
TRAPS_REL=latest
else
TRAPS_REL=${{ github.event.release.tag_name }}
fi
Expand Down Expand Up @@ -333,6 +354,8 @@ jobs:
TRAPS_REL=${{ inputs.release_tag }}
elif [[ ${{ github.event_name == 'push' }} == true ]]; then
TRAPS_REL=latest
elif [[ ${{ github.event_name == 'pull_request' }} == true ]]; then
TRAPS_REL=latest
else
TRAPS_REL=${{ github.event.release.tag_name }}
fi
Expand Down Expand Up @@ -368,6 +391,8 @@ jobs:
TRAPS_REL=${{ inputs.release_tag }}
elif [[ ${{ github.event_name == 'push' }} == true ]]; then
TRAPS_REL=latest
elif [[ ${{ github.event_name == 'pull_request' }} == true ]]; then
TRAPS_REL=latest
else
TRAPS_REL=${{ github.event.release.tag_name }}
fi
Expand Down Expand Up @@ -402,6 +427,8 @@ jobs:
TRAPS_REL=${{ inputs.release_tag }}
elif [[ ${{ github.event_name == 'push' }} == true ]]; then
TRAPS_REL=latest
elif [[ ${{ github.event_name == 'pull_request' }} == true ]]; then
TRAPS_REL=latest
else
TRAPS_REL=${{ github.event.release.tag_name }}
fi
Expand Down Expand Up @@ -436,6 +463,8 @@ jobs:
TRAPS_REL=${{ inputs.release_tag }}
elif [[ ${{ github.event_name == 'push' }} == true ]]; then
TRAPS_REL=latest
elif [[ ${{ github.event_name == 'pull_request' }} == true ]]; then
TRAPS_REL=latest
else
TRAPS_REL=${{ github.event.release.tag_name }}
fi
Expand Down

0 comments on commit dfdd729

Please sign in to comment.