diff --git a/.github/workflows/staging_deployment.yml b/.github/workflows/staging_deployment.yml index 1ff2c25a..8f81fcc9 100644 --- a/.github/workflows/staging_deployment.yml +++ b/.github/workflows/staging_deployment.yml @@ -40,7 +40,7 @@ jobs: - name: Update Image Tag run: | NEW_TAG="v$(git rev-parse --short HEAD)" - cd ${{ vars.STAGING_DEPLOY_REPO }}/${{ vars.STAGING_DEPLOY_DIR }}/integrations + cd ${{ vars.STAGING_DEPLOY_REPO }}/${{ vars.STAGING_DEPLOY_DIR }}/staging/integrations kustomize edit set image docker.io/${{ secrets.DOCKERHUB_USERNAME }}/fyle_xero-api=docker.io/${{ secrets.DOCKERHUB_USERNAME }}/fyle_xero-api:$NEW_TAG - name: Commit and push changes @@ -49,7 +49,7 @@ jobs: git config --global user.email "integrations@fylehq.com" git config --global user.name "GitHub Actions" git add . - git commit -m "Update image tag" + git commit -m "Deployed xero-api:$NEW_TAG to staging" git remote set-url origin https://x-access-token:${{ secrets.DEPLOY_GIT_ACCESS_TOKEN }}@github.com/${{ vars.STAGING_DEPLOY_REPO }} git pull origin master git push origin master