From 3b8dbc8ccf9e41ea7081321c4afc0f0c1f498519 Mon Sep 17 00:00:00 2001 From: Rahul Ramesh Date: Fri, 2 Feb 2024 15:03:31 +0530 Subject: [PATCH] [Rahul] | BAH-3528 | Test. Latest Proxy Rules --- .../workflows/proxy_image_build_publish.yml | 22 ++----------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/.github/workflows/proxy_image_build_publish.yml b/.github/workflows/proxy_image_build_publish.yml index 5d25333..46e8270 100644 --- a/.github/workflows/proxy_image_build_publish.yml +++ b/.github/workflows/proxy_image_build_publish.yml @@ -4,6 +4,7 @@ on: branches: - main - 'release-*' + - 'BAH-3528' tags: - '[0-9]+.[0-9]+.[0-9]+' @@ -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}}