feat(canvas): Add DePIN Node WaveMode — Docker management + live stat… #13
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
| # Trinity Node - Docker Build & Push to GHCR | |
| # Builds on push to main when source or Dockerfile changes | |
| name: Build & Push Trinity Node | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'src/**' | |
| - 'build.zig' | |
| - 'build.zig.zon' | |
| - 'deploy/Dockerfile.node' | |
| - '.dockerignore' | |
| workflow_dispatch: | |
| jobs: | |
| build-push: | |
| name: Build & Push Docker Image | |
| 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 }} | |
| - uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| file: deploy/Dockerfile.node | |
| platforms: linux/amd64,linux/arm64 | |
| push: true | |
| tags: | | |
| ghcr.io/ghashtag/trinity-node:latest | |
| ghcr.io/ghashtag/trinity-node:${{ github.sha }} | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max |