try after trigger reset #29
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 to Trigger.dev (self-hosted) | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js 20.x | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20.x" | |
| - name: Install dependencies | |
| run: npm install | |
| # docker setup - part 1 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| # docker setup - part 2 | |
| - name: Login to GitHub Container Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ vars.GHCR_USERNAME }} | |
| password: ${{ secrets.GHCR_TOKEN }} | |
| - name: 🚀 Deploy Trigger.dev | |
| env: | |
| TRIGGER_ACCESS_TOKEN: ${{ secrets.TRIGGER_ACCESS_TOKEN }} | |
| TRIGGER_API_URL: ${{ vars.TRIGGER_API_URL }} | |
| TRIGGER_SERVER_URL: ${{ vars.TRIGGER_SERVER_URL }} | |
| run: | | |
| sed -i 's|proj_fyeypkhgyaejpiweobwq|proj_cafkhcwrdntlvmvqkdwg|g' ./src/trigger.config.ts | |
| sudo apt-get update && sudo apt-get install -y util-linux | |
| script -q -e -c "bash -c 'npx trigger.dev@v4-beta login -a $TRIGGER_SERVER_URL --profile self-hosted'" | |
| echo y | script -q -e -c "bash -c 'npx trigger.dev@v4-beta deploy --env staging --profile self-hosted --push -c ./src/trigger.config.ts'" |