From e8e2886a66c2d4d746ae3d9f43de3b01d267b473 Mon Sep 17 00:00:00 2001 From: ashwin1111 Date: Tue, 11 Feb 2025 14:04:11 +0530 Subject: [PATCH] chore: deploy to all staging envs --- .github/workflows/c1-staging-deployment.yml | 3 --- .github/workflows/qa-deployment.yml | 3 --- .github/workflows/staging-deployment.yml | 14 +++++++++++++- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/c1-staging-deployment.yml b/.github/workflows/c1-staging-deployment.yml index 833b04ecb..bee54c4b6 100644 --- a/.github/workflows/c1-staging-deployment.yml +++ b/.github/workflows/c1-staging-deployment.yml @@ -1,9 +1,6 @@ name: Deploy to C1 Staging on: - push: - branches: - - master pull_request: types: [labeled] diff --git a/.github/workflows/qa-deployment.yml b/.github/workflows/qa-deployment.yml index db63196a2..7e99c2132 100644 --- a/.github/workflows/qa-deployment.yml +++ b/.github/workflows/qa-deployment.yml @@ -1,9 +1,6 @@ name: Deploy to QA on: - push: - branches: - - master pull_request: types: [labeled] diff --git a/.github/workflows/staging-deployment.yml b/.github/workflows/staging-deployment.yml index 728f8de19..8be889857 100644 --- a/.github/workflows/staging-deployment.yml +++ b/.github/workflows/staging-deployment.yml @@ -36,12 +36,24 @@ jobs: persist-credentials: false token: ${{ secrets.DEPLOY_GIT_ACCESS_TOKEN }} - - name: Update Image Tag + - name: Update Image Tag - fyle staging run: | NEW_TAG="v$(git rev-parse --short HEAD)" cd ${{ vars.STAGING_DEPLOY_REPO }}/${{ vars.STAGING_DEPLOY_DIR }}/staging/integrations kustomize edit set image docker.io/${{ secrets.DOCKERHUB_USERNAME }}/fyle_integrations-app=docker.io/${{ secrets.DOCKERHUB_USERNAME }}/fyle_integrations-app:$NEW_TAG + - name: Update Image Tag - c1 qa + run: | + NEW_TAG="v$(git rev-parse --short HEAD)" + cd ${{ vars.STAGING_DEPLOY_REPO }}/${{ vars.C1_STAGING_DEPLOY_DIR }}/qa/integrations + kustomize edit set image docker.io/${{ secrets.DOCKERHUB_USERNAME }}/fyle_integrations-app=docker.io/${{ secrets.DOCKERHUB_USERNAME }}/fyle_integrations-app:$NEW_TAG + + - name: Update Image Tag - c1 staging + run: | + NEW_TAG="v$(git rev-parse --short HEAD)" + cd ${{ vars.STAGING_DEPLOY_REPO }}/${{ vars.C1_STAGING_DEPLOY_DIR }}/staging/integrations + kustomize edit set image docker.io/${{ secrets.DOCKERHUB_USERNAME }}/fyle_integrations-app=docker.io/${{ secrets.DOCKERHUB_USERNAME }}/fyle_integrations-app:$NEW_TAG + - name: Commit and push changes run: | cd ${{ vars.STAGING_DEPLOY_REPO }}/