Ok it is needed :(( #61
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish build image | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu | |
- debian | |
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: Set tag name based on branch | |
id: set-tag-name | |
run: | | |
if [ "${{ github.ref_name }}" = "main" ]; then | |
echo "tag_name=falkordb-build:${{ matrix.os }}" >> $GITHUB_OUTPUT | |
else | |
echo "tag_name=falkordb-build:${{ github.ref_name }}-${{ matrix.os }}" >> $GITHUB_OUTPUT | |
fi | |
- name: Build and push ${{ matrix.os }} image | |
uses: docker/build-push-action@v6 | |
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/${{ steps.set-tag-name.outputs.tag_name }} |