From e16e6b801ca82fa67a0f71407e88a6a387ce5497 Mon Sep 17 00:00:00 2001 From: Raghunath Prabhakar <82239949+Raghuboi@users.noreply.github.com> Date: Fri, 29 Mar 2024 07:57:23 -0500 Subject: [PATCH 1/2] add API request to trigger prod container restart --- .github/workflows/ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5d8efc3..ac9026b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -66,3 +66,10 @@ jobs: TAGS: ${{ steps.meta.outputs.tags }} DIGEST: ${{ steps.build-and-push.outputs.digest }} run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST} + + - name: Deploy + uses: fjogeleit/http-request-action@v1 + with: + url: ${{ secrets.DEPLOYMENT_URL }} + method: 'POST' + bearerToken: ${{ secrets.DEPLOYMENT_TOKEN }} From 999451b8e75844158b9982ef8d33e187365591e0 Mon Sep 17 00:00:00 2001 From: Raghunath Prabhakar <82239949+Raghuboi@users.noreply.github.com> Date: Fri, 29 Mar 2024 08:03:41 -0500 Subject: [PATCH 2/2] Update ci.yml --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ac9026b..494a00f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -68,6 +68,7 @@ jobs: run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST} - name: Deploy + if: ${{ github.event_name != 'pull_request' }} uses: fjogeleit/http-request-action@v1 with: url: ${{ secrets.DEPLOYMENT_URL }}