Skip to content

Merge pull request #3 from janekbaraniewski/init #3

Merge pull request #3 from janekbaraniewski/init

Merge pull request #3 from janekbaraniewski/init #3

Workflow file for this run

name: Build and Push Docker images
on:
push:
branches:
- master
paths:
- 'src/**'
- 'Dockerfile.server'
- 'Dockerfile.client'
jobs:
build-and-push:
runs-on: ubuntu-latest
strategy:
matrix:
component: [server, client]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build container image
run: make build-${{ matrix.component }}-image
- name: Tag container image
run: make tag-${{ matrix.component }}-image
- name: Push container image
run: make push-${{ matrix.component }}-image