Skip to content

Build Rust images

Build Rust images #5

Workflow file for this run

name: Build Rust images
on:
workflow_dispatch:
jobs:
build-and-publish-rust:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Setup protoc
run: sudo apt install -y protobuf-compiler
- name: Build proto files
run: make grpc_init_rust
- name: Build calendar-service
working-directory: ./calendar-service
run: |
docker build . -f calendar-service.Dockerfile -t ghcr.io/samgozman/validity.red/calendar-service:latest
docker push ghcr.io/samgozman/validity.red/calendar-service:latest