Skip to content

Build Docker images #43

Build Docker images

Build Docker images #43

Workflow file for this run

name: Build Docker images
on:
push:
tags:
- 'v*.*.*'
jobs:
docker:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- dockerfile: ./worker/Dockerfile
image: drogus/crows-worker
context: .
- dockerfile: ./coordinator/Dockerfile
image: drogus/crows-coordinator
context: .
- dockerfile: ./cli/Dockerfile
image: drogus/crows-client
context: .
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/${{ matrix.image }}
tags: |
type=ref,event=tag
type=semver,pattern={{version}}
type=sha
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Log in to the Container registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: ${{ matrix.context }}
file: ${{ matrix.dockerfile }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64 # Specify platforms here.