Build Rust images #5
This file contains 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 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 |