Skip to content

Commit

Permalink
Merge pull request #365 from FalkorDB/docker
Browse files Browse the repository at this point in the history
add publish docker frontend
  • Loading branch information
gkorland authored Jan 24, 2025
2 parents f419fe6 + 12d3466 commit cebdd83
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/release-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
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/code-graph-frontend:latest,falkordb/code-graph-frontend:${{ github.ref_name }}" >> $GITHUB_ENV
else
echo "TAGS=falkordb/code-graph-frontend: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 }}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Use a Node.js base image
FROM node:20
FROM node:22

# Set working directory
WORKDIR /app
Expand Down

0 comments on commit cebdd83

Please sign in to comment.