Test Stacktape Deploy #6
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: Test Stacktape Deploy | |
| on: workflow_dispatch | |
| jobs: | |
| deploy: | |
| runs-on: [self-hosted, stacktape] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Check environment | |
| run: | | |
| echo "STACKTAPE_API_KEY is set = $([ -n "$STACKTAPE_API_KEY" ] && echo YES || echo NO)" | |
| echo "STP_CUSTOM_TRPC_API_ENDPOINT = ${STP_CUSTOM_TRPC_API_ENDPOINT:-not set}" | |
| - name: Setup Node via fnm | |
| run: | | |
| export FNM_DIR="$HOME/.local/share/fnm" | |
| eval "$($FNM_DIR/fnm env --shell bash)" | |
| echo "PATH=$PATH" >> $GITHUB_ENV | |
| echo "FNM_MULTISHELL_PATH=$(dirname $(which node))" >> $GITHUB_ENV | |
| node --version | |
| - name: Install project dependencies | |
| run: npm install | |
| - name: Fix Docker permissions | |
| run: sudo chown -R ec2-user:ec2-user /home/ec2-user/.docker 2>/dev/null || true | |
| - name: Deploy with Stacktape | |
| run: stacktape deploy --stage gh-runner-test --region eu-west-1 --projectName lambda-starter |