Skip to content

Commit

Permalink
chore: deploy to all staging envs
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwin1111 committed Feb 11, 2025
1 parent 11b32b9 commit e8e2886
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/c1-staging-deployment.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Deploy to C1 Staging

on:
push:
branches:
- master
pull_request:
types: [labeled]

Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/qa-deployment.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Deploy to QA

on:
push:
branches:
- master
pull_request:
types: [labeled]

Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/staging-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}/
Expand Down

0 comments on commit e8e2886

Please sign in to comment.