Skip to content

Merge pull request #159 from FalkorDB/styling-graph-page #46

Merge pull request #159 from FalkorDB/styling-graph-page

Merge pull request #159 from FalkorDB/styling-graph-page #46

Workflow file for this run

name: Release image to DockerHub
on:
workflow_dispatch:
push:
tags: ["v*.*.*"]
branches:
- main
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set tags
run: |
if ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags') }}; then
echo "TAGS=falkordb/falkordb-browser:latest,falkordb/falkordb-browser:${{ github.ref_name }}" >> $GITHUB_ENV
else
echo "TAGS=falkordb/falkordb-browser:edge" >> $GITHUB_ENV
fi
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ env.TAGS }}