Skip to content

OpenRAG is a comprehensive, single package Retrieval-Augmented Generation platform built on Langflow, Docling, and Opensearch.

Python

operator dockhub publish (#1537)

ming6c69f20298ea
diff --git a/.github/workflows/operator-release.yml b/.github/workflows/operator-release.yml
index c7315bfea..71c367d61 100644
--- a/.github/workflows/operator-release.yml
+++ b/.github/workflows/operator-release.yml
@@ -46,13 +46,20 @@ jobs:
- uses: docker/setup-buildx-action@v3
- - uses: docker/login-action@v3
+ - name: Login to GitHub Container Registry
+ uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- - name: Build and push ${{ matrix.arch }}
+ - name: Login to Docker Hub
+ uses: docker/login-action@v3
+ with:
+ username: ${{ secrets.DOCKER_USERNAME }}
+ password: ${{ secrets.DOCKER_PASSWORD }}
+
+ - name: Build and push ${{ matrix.arch }} to GHCR
uses: docker/build-push-action@v6
with:
context: kubernetes/operator
@@ -63,6 +70,16 @@ jobs:
cache-from: type=gha,scope=operator-${{ matrix.arch }}
cache-to: type=gha,mode=max,scope=operator-${{ matrix.arch }}
+ - name: Build and push ${{ matrix.arch }} to Docker Hub
+ uses: docker/build-push-action@v6
+ with:
+ context: kubernetes/operator
+ file: kubernetes/operator/Dockerfile
+ platforms: ${{ matrix.platform }}
+ push: true
+ tags: langflowai/openrag-operator:${{ steps.tag.outputs.value }}-${{ matrix.arch }}
+ cache-from: type=gha,scope=operator-${{ matrix.arch }}
+
manifest:
name: Create multi-arch manifest
runs-on: ubuntu-latest
@@ -82,13 +99,20 @@ jobs:
echo "value=${GITHUB_REF_NAME#operator/}" >> $GITHUB_OUTPUT
fi
- - uses: docker/login-action@v3
+ - name: Login to GitHub Container Registry
+ uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- - name: Push multi-arch manifest
+ - name: Login to Docker Hub
+ uses: docker/login-action@v3
+ with:
+ username: ${{ secrets.DOCKER_USERNAME }}
+ password: ${{ secrets.DOCKER_PASSWORD }}
+
+ - name: Push multi-arch manifest to GHCR
run: |
TAG=${{ steps.tag.outputs.value }}
docker buildx imagetools create \
@@ -97,6 +121,15 @@ jobs:
${{ env.IMAGE }}:${TAG}-amd64 \
${{ env.IMAGE }}:${TAG}-arm64
+ - name: Push multi-arch manifest to Docker Hub
+ run: |
+ TAG=${{ steps.tag.outputs.value }}
+ docker buildx imagetools create \
+ -t langflowai/openrag-operator:${TAG} \
+ -t langflowai/openrag-operator:latest \
+ langflowai/openrag-operator:${TAG}-amd64 \
+ langflowai/openrag-operator:${TAG}-arm64
+
- name: Create GitHub release
uses: softprops/action-gh-release@v2
if: github.event_name == 'push'
diff --git a/kubernetes/operator/README.md b/kubernetes/operator/README.md
index 222934ee2..3143c359a 100644
--- a/kubernetes/operator/README.md
+++ b/kubernetes/operator/README.md
@@ -268,17 +268,17 @@ git push origin operator/v0.1.0
This triggers the `.github/workflows/operator-release.yml` workflow which:
1. Builds multi-architecture images (linux/amd64, linux/arm64)
-2. Pushes to `ghcr.io/<owner>/openrag-operator:v0.1.0`
-3. Creates a multi-arch manifest with `:latest` tag
+2. Pushes to **both** GHCR and Docker Hub
+3. Creates multi-arch manifests with `:latest` tag
4. Creates a GitHub release with release notes
**Manual trigger:**
You can also trigger the release workflow manually from the GitHub Actions UI with a custom tag.
-**Image location:**
-- Registry: `ghcr.io`
-- Repository: `ghcr.io/langflow-ai/openrag-operator`
-- Tags: `v0.1.0`, `v0.1.0-amd64`, `v0.1.0-arm64`, `latest`
+**Image locations:**
+- **GHCR**: `ghcr.io/langflow-ai/openrag-operator`
+- **Docker Hub**: `langflowai/openrag-operator`
+- **Tags**: `v0.1.0`, `v0.1.0-amd64`, `v0.1.0-arm64`, `latest`
### Helm Chart Publishing