Skip to content

change workflow name #73

change workflow name

change workflow name #73

name: Build image
on:
push:
workflow_dispatch:
jobs:
docker:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os:
- ubuntu
- debian
- rhel
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
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: ${{ github.ref_name == 'main' }}
tags: falkordb/falkordb-build:${{ matrix.os }}