fix(deploy): correct command syntax for InsForge function deployment #9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy InsForge Function | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - insforge/functions/reconcile-applications/** | |
| - .github/workflows/insforge-functions.yml | |
| workflow_dispatch: {} | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: insforge-reconcile-applications | |
| cancel-in-progress: true | |
| jobs: | |
| deploy-reconcile-applications: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| - name: Link InsForge project | |
| env: | |
| INSFORGE_ACCESS_TOKEN: ${{ secrets.INSFORGE_ACCESS_TOKEN }} | |
| INSFORGE_PROJECT_ID: ${{ secrets.INSFORGE_PROJECT_ID }} | |
| run: | | |
| npx --yes @insforge/cli whoami --json | |
| npx --yes @insforge/cli link --project-id "$INSFORGE_PROJECT_ID" --org-id "fe8bcacb-8556-47e3-9aad-d005bd3537a5" --json -y | |
| - name: Deploy function | |
| env: | |
| INSFORGE_ACCESS_TOKEN: ${{ secrets.INSFORGE_ACCESS_TOKEN }} | |
| INSFORGE_PROJECT_ID: ${{ secrets.INSFORGE_PROJECT_ID }} | |
| run: | | |
| npx --yes @insforge/cli functions deploy reconcile-applications --file ./insforge/functions/reconcile-applications/index.ts --json -y |