Skip to content

Commit

Permalink
[Rahul] | BAH-3528 | Test. Latest Proxy Rules
Browse files Browse the repository at this point in the history
  • Loading branch information
rahu1ramesh committed Feb 2, 2024
1 parent 2b57b70 commit 3b8dbc8
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions .github/workflows/proxy_image_build_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
branches:
- main
- 'release-*'
- 'BAH-3528'
tags:
- '[0-9]+.[0-9]+.[0-9]+'

Expand Down Expand Up @@ -34,23 +35,4 @@ jobs:
platforms: linux/amd64,linux/arm64
no-cache: true
push: true
tags: bahmni/proxy:${{env.ARTIFACT_VERSION}},bahmni/proxy:latest
trigger:
name: Trigger auto deploy
runs-on: ubuntu-latest
needs: docker-build-publish
env:
ORG_NAME: Bahmni
REPOSITORY_NAME: bahmni-docker
EVENT_TYPE: bahmni-proxy-publish-event
steps:
- name: Create repository_dispatch
run: |
trigger_result=$(curl -s -o trigger_response.txt -w "%{http_code}" -X POST -H "Accept: application/vnd.github.v3+json" -H 'authorization: Bearer ${{ secrets.BAHMNI_PAT }}' https://api.github.com/repos/${ORG_NAME}/${REPOSITORY_NAME}/dispatches -d '{"event_type":"'"${EVENT_TYPE}"'"}')
if [ $trigger_result == 204 ];then
echo "Trigger to $ORG_NAME/$REPOSITORY_NAME Success"
else
echo "Trigger to $ORG_NAME/$REPOSITORY_NAME Failed"
cat trigger_response.txt
exit 1
fi
tags: bahmni/proxy:${{env.ARTIFACT_VERSION}}

0 comments on commit 3b8dbc8

Please sign in to comment.