Skip to content

upcoming allow public #222

upcoming allow public

upcoming allow public #222

Workflow file for this run

name: db
on:
push:
branches: [main]
paths:
- .github/workflows/db.yaml
- Cargo.toml
- bin/db/**
- lib/**
permissions:
packages: write
contents: read
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install Protoc
run: |
sudo apt-get update
sudo apt-get install -y protobuf-compiler
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: Swatinem/rust-cache@v2
with:
key: db
- run: cargo build --release
working-directory: ./bin/db
- run: cp target/release/synixe-db ./bin/db/synixe-db
- name: Build Image
working-directory: ./bin/db
run: docker build . -t db
- name: Tag Image
run: docker tag db ghcr.io/synixecontractors/apps-db:latest
- name: Push Image
run: docker push ghcr.io/synixecontractors/apps-db:latest