Skip to content

11 reduce the size of the build images #13

11 reduce the size of the build images

11 reduce the size of the build images #13

name: Build test image
on:
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:
jobs:
docker:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os:
- ubuntu
- debian
- rhel
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build ${{ github.ref_name == 'main' && 'and push' || ''}} image
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.${{ matrix.os }}
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: linux/amd64,linux/arm64
push: true
tags: falkordb/falkordb-build:${{ matrix.os }}-${{ github.sha }}