Skip to content

Merge branch 'main' of https://github.com/ivozilkenat/distributed-sys… #118

Merge branch 'main' of https://github.com/ivozilkenat/distributed-sys…

Merge branch 'main' of https://github.com/ivozilkenat/distributed-sys… #118

name: Build and Publish "Matchmaking" Docker Image
on:
push:
branches: ['main']
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}-matchmaking
jobs:
build-and-push-matchmaking:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata for matchmaking service
id: meta_matchmaking
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-matchmaking
- name: Build and push matchmaking Docker image
uses: docker/build-push-action@v2
with:
context: ./services/matchmaking_server
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest