fix(deploy): correct command syntax for InsForge function deployment #7
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: Setup InsForge credentials | |
| env: | |
| INSFORGE_ACCESS_TOKEN: ${{ secrets.INSFORGE_ACCESS_TOKEN }} | |
| run: | | |
| mkdir -p ~/.insforge | |
| # Create credentials file for CLI authentication | |
| cat > ~/.insforge/credentials.json <<EOF | |
| { | |
| "access_token": "$INSFORGE_ACCESS_TOKEN", | |
| "refresh_token": null, | |
| "user": { "id": "ci-user" } | |
| } | |
| EOF | |
| - name: Deploy function | |
| env: | |
| INSFORGE_PROJECT_ID: ${{ secrets.INSFORGE_PROJECT_ID }} | |
| run: | | |
| npx --yes @insforge/cli functions deploy reconcile-applications --file ./insforge/functions/reconcile-applications/index.ts |