bump solana-sdk to 0.1.27 #16
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: Build & Push to GHCR | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: docker/setup-buildx-action@v3 | |
| - uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - id: meta | |
| uses: docker/metadata-action@v5 | |
| with: | |
| images: ghcr.io/${{ github.repository }} | |
| tags: | | |
| type=ref,event=branch | |
| type=sha,prefix=sha-,format=short | |
| type=raw,value=latest,enable={{is_default_branch}} | |
| - uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| push: true | |
| tags: ${{ steps.meta.outputs.tags }} | |
| labels: ${{ steps.meta.outputs.labels }} | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max | |
| # NEXT_PUBLIC_* are inlined into the client bundle at build time. | |
| # Helius key is held in a repo secret; everything else falls back to | |
| # public defaults inside src/lib/constants.ts. | |
| build-args: | | |
| NEXT_PUBLIC_RPC_URL=${{ secrets.NEXT_PUBLIC_RPC_URL }} | |
| NEXT_PUBLIC_ROOT_ID=${{ vars.NEXT_PUBLIC_ROOT_ID }} | |
| deploy: | |
| needs: build | |
| if: github.ref == 'refs/heads/main' | |
| runs-on: ubuntu-latest | |
| steps: | |
| # authorized_keys is command-restricted to `deploy.sh browser`, | |
| # so this key can only redeploy browser even if leaked. | |
| - name: Deploy to iqlabs server | |
| env: | |
| DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }} | |
| DEPLOY_SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }} | |
| SSH_HOST_KEY: ${{ secrets.SSH_HOST_KEY }} | |
| run: | | |
| mkdir -p ~/.ssh | |
| umask 077 | |
| printf '%s\n' "$DEPLOY_SSH_KEY" > ~/.ssh/deploy_key | |
| printf '%s %s\n' "$DEPLOY_HOST" "$SSH_HOST_KEY" > ~/.ssh/known_hosts | |
| ssh -i ~/.ssh/deploy_key \ | |
| -o UserKnownHostsFile=~/.ssh/known_hosts \ | |
| -o StrictHostKeyChecking=yes \ | |
| -o BatchMode=yes \ | |
| -o ConnectTimeout=10 \ | |
| iqlabs@"$DEPLOY_HOST" 'ignored: forced command runs deploy.sh browser' | |
| shred -u ~/.ssh/deploy_key 2>/dev/null || rm -f ~/.ssh/deploy_key |