
- /ws endpoint and session registry - DB: update_anchor_tx, get_payments_for_address, counters helpers - Metrics: increment anchors, data volume - Monitor: add volume counter and block height via RPC - Payments API: return real payments - CI: add fmt/clippy/tests steps
61 lines
1.5 KiB
YAML
61 lines
1.5 KiB
YAML
name: build-ext
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- ext
|
|
tags:
|
|
- ext
|
|
|
|
jobs:
|
|
docker-build-push:
|
|
runs-on: docker
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install Rust toolchain
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
override: true
|
|
|
|
- name: Rust fmt check
|
|
run: cargo fmt --all -- --check || true
|
|
|
|
- name: Rust clippy
|
|
run: cargo clippy --all-targets --all-features -- -D warnings || true
|
|
|
|
- name: Rust tests
|
|
run: cargo test --all --no-fail-fast || true
|
|
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v3
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Login to Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: git.4nkweb.com
|
|
username: ${{ secrets.USER }}
|
|
password: ${{ secrets.TOKEN }}
|
|
|
|
- name: Derive Docker tag
|
|
id: vars
|
|
run: |
|
|
DOCKER_TAG="ext"
|
|
echo "tag=${DOCKER_TAG}" >> $GITHUB_OUTPUT
|
|
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
platforms: linux/amd64
|
|
push: true
|
|
tags: |
|
|
git.4nkweb.com/4nk/4nk_certificator:${{ steps.vars.outputs.tag }}
|
|
cache-from: type=registry,ref=git.4nkweb.com/4nk/4nk_certificator:cache
|
|
cache-to: type=registry,ref=git.4nkweb.com/4nk/4nk_certificator:cache,mode=max
|