Skip to content

Commit 80e6cf9

Browse files
committed
Add Docker support for activity-openrouter and update build workflow
1 parent 2ba3271 commit 80e6cf9

3 files changed

Lines changed: 27 additions & 3 deletions

File tree

.github/workflows/docker-image.yml

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
name: Build and Push Docker Image
1+
name: Build and Push Docker Images
22

33
on:
44
push:
55
branches: [ main ]
66
workflow_dispatch:
77

88
jobs:
9-
build:
9+
build-process-flow:
1010
runs-on: ubuntu-latest
1111

1212
steps:
@@ -22,10 +22,32 @@ jobs:
2222
username: ${{ secrets.DOCKERHUB_USERNAME }}
2323
password: ${{ secrets.DOCKERHUB_TOKEN }}
2424

25-
- name: Build and push Docker image
25+
- name: Build and push process-flow image
2626
uses: docker/build-push-action@v4
2727
with:
2828
context: .
2929
push: true
3030
tags: mertend/process-flow:latest
3131

32+
build-activity-openrouter:
33+
runs-on: ubuntu-latest
34+
35+
steps:
36+
- name: Checkout repository
37+
uses: actions/checkout@v3
38+
39+
- name: Set up Docker Buildx
40+
uses: docker/setup-buildx-action@v2
41+
42+
- name: Log in to Docker Hub
43+
uses: docker/login-action@v2
44+
with:
45+
username: ${{ secrets.DOCKERHUB_USERNAME }}
46+
password: ${{ secrets.DOCKERHUB_TOKEN }}
47+
48+
- name: Build and push activity-openrouter image
49+
uses: docker/build-push-action@v4
50+
with:
51+
context: ./custom-activities/openrouter
52+
push: true
53+
tags: mertend/activity-openrouter:latest

docker-compose.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ services:
2323
- traefik.http.services.process-flow.loadbalancer.server.port=3000
2424

2525
activity-openrouter:
26+
build: ./custom-activities/openrouter
2627
image: mertend/activity-openrouter:latest
2728
container_name: merten-activity-openrouter
2829
restart: unless-stopped

src/middleware.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export function middleware(request: NextRequest) {
1111
pathname.startsWith("/authenticate") ||
1212
pathname.startsWith("/api/auth") ||
1313
pathname.startsWith("/api/instance") ||
14+
pathname === "/docs" ||
1415
pathname === "/"
1516

1617
if (isPublic) return response

0 commit comments

Comments
 (0)