fix: slower CStore api logging #19
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 GPU images | |
| on: | |
| push: | |
| branches: | |
| - "develop" | |
| - "main" | |
| workflow_dispatch: | |
| jobs: | |
| build-gpu-devnet: | |
| if: github.ref == 'refs/heads/develop' || github.event_name == 'workflow_dispatch' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Retrieve edge node version | |
| run: | | |
| VERSION=$(cat ver.py | grep -o "'.*'" | tr -d "'") | |
| echo "VERSION=$VERSION" >> $GITHUB_ENV | |
| echo "GPU devnet build — edge node version: $VERSION" | |
| - name: Log in to Docker Hub | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - name: Set up Docker Buildx | |
| id: buildx | |
| uses: docker/setup-buildx-action@v3 | |
| with: | |
| version: "lab:latest" | |
| driver: cloud | |
| endpoint: "naeural/naeural-builder" | |
| - name: Cleanup space | |
| run: | | |
| docker buildx prune -f --verbose --builder "${{ steps.buildx.outputs.name }}" | |
| - name: Build and push GPU devnet image | |
| uses: docker/build-push-action@v6 | |
| with: | |
| builder: ${{ steps.buildx.outputs.name }} | |
| context: . | |
| file: ./Dockerfile_devnet | |
| build-args: | | |
| BASE_IMAGE=ratio1/base_edge_node_amd64_gpu:latest | |
| push: true | |
| tags: "ratio1/edge_node_gpu:devnet" | |
| build-gpu-testnet: | |
| if: github.ref == 'refs/heads/develop' || github.event_name == 'workflow_dispatch' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Retrieve edge node version | |
| run: | | |
| VERSION=$(cat ver.py | grep -o "'.*'" | tr -d "'") | |
| echo "VERSION=$VERSION" >> $GITHUB_ENV | |
| echo "GPU testnet build — edge node version: $VERSION" | |
| - name: Log in to Docker Hub | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - name: Set up Docker Buildx | |
| id: buildx | |
| uses: docker/setup-buildx-action@v3 | |
| with: | |
| version: "lab:latest" | |
| driver: cloud | |
| endpoint: "naeural/naeural-builder" | |
| - name: Cleanup space | |
| run: | | |
| docker buildx prune -f --verbose --builder "${{ steps.buildx.outputs.name }}" | |
| - name: Build and push GPU testnet image | |
| uses: docker/build-push-action@v6 | |
| with: | |
| builder: ${{ steps.buildx.outputs.name }} | |
| context: . | |
| file: ./Dockerfile_testnet | |
| build-args: | | |
| BASE_IMAGE=ratio1/base_edge_node_amd64_gpu:latest | |
| push: true | |
| tags: "ratio1/edge_node_gpu:testnet" | |
| build-gpu-mainnet: | |
| if: github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Retrieve edge node version | |
| run: | | |
| VERSION=$(cat ver.py | grep -o "'.*'" | tr -d "'") | |
| echo "VERSION=$VERSION" >> $GITHUB_ENV | |
| echo "GPU mainnet build — edge node version: $VERSION" | |
| - name: Log in to Docker Hub | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - name: Set up Docker Buildx | |
| id: buildx | |
| uses: docker/setup-buildx-action@v3 | |
| with: | |
| version: "lab:latest" | |
| driver: cloud | |
| endpoint: "naeural/naeural-builder" | |
| - name: Cleanup space | |
| run: | | |
| docker buildx prune -f --verbose --builder "${{ steps.buildx.outputs.name }}" | |
| - name: Build and push GPU mainnet image | |
| uses: docker/build-push-action@v6 | |
| with: | |
| builder: ${{ steps.buildx.outputs.name }} | |
| context: . | |
| file: ./Dockerfile_mainnet | |
| build-args: | | |
| BASE_IMAGE=ratio1/base_edge_node_amd64_gpu:latest | |
| push: true | |
| tags: | | |
| ratio1/edge_node_gpu:mainnet | |
| ratio1/edge_node_gpu:latest |