Skip to content

Merge pull request #77 from SynixeContractors/serenity_update #194

Merge pull request #77 from SynixeContractors/serenity_update

Merge pull request #77 from SynixeContractors/serenity_update #194

Workflow file for this run

name: scheduler
on:
push:
branches: [main]
paths:
- .github/workflows/scheduler.yaml
- Cargo.toml
- bin/scheduler/**
- 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: scheduler
- run: cargo build --release
working-directory: ./bin/scheduler
- run: cp target/release/synixe-scheduler ./bin/scheduler/synixe-scheduler
- name: Build Image
working-directory: ./bin/scheduler
run: docker build . -t scheduler
- name: Tag Image
run: docker tag scheduler ghcr.io/synixecontractors/apps-scheduler:latest
- name: Push Image
run: docker push ghcr.io/synixecontractors/apps-scheduler:latest