Skip to content

Commit 573dc42

Browse files
committed
temp_ci context7
1 parent 8c41a88 commit 573dc42

2 files changed

Lines changed: 72 additions & 0 deletions

File tree

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Publish to Dockerhub ( llamafactory )
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
tags:
7+
description: 'Release Tags'
8+
push:
9+
branches:
10+
# - "main"
11+
- "temp_ci"
12+
13+
jobs:
14+
update_dockerhub:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: PR Conventional Commit Validation
18+
uses: ytanikin/PRConventionalCommits@1.1.0
19+
if: github.event_name == 'pull_request' || github.event_name == 'pull_request_target'
20+
with:
21+
task_types: '["feat","fix","docs","test","ci","refactor","perf","chore","revert","style"]'
22+
add_label: 'true'
23+
24+
- name: Check out the repo
25+
uses: actions/checkout@v3
26+
27+
- name: Set up QEMU
28+
uses: docker/setup-qemu-action@v3
29+
30+
- name: Set up Docker Buildx
31+
uses: docker/setup-buildx-action@v3
32+
33+
- uses: actions/setup-go@v2
34+
with:
35+
go-version: 1.23.3
36+
37+
- name: Log in to Docker Hub
38+
uses: docker/login-action@v2
39+
with:
40+
username: ${{ secrets.DOCKERHUB_USERNAME }}
41+
password: ${{ secrets.DOCKERHUB_PASS }}
42+
43+
- name: get latest tag
44+
uses: "WyriHaximus/github-action-get-previous-tag@v1"
45+
id: get-latest-tag
46+
with:
47+
fallback: latest
48+
49+
- name: Build and push Docker image
50+
uses: docker/build-push-action@v3
51+
with:
52+
push: true
53+
tags: beclab/upstash-context7-mcp:2.1.4
54+
#tags: beclab/llamafactory:${{ github.event.inputs.tags }}
55+
# tags: beclab/seahub-init:${{ steps.get-latest-tag.outputs.tag }}
56+
file: Dockerfile.context7
57+
# platforms: linux/amd64
58+
platforms: linux/amd64,linux/arm64
59+
60+

Dockerfile.context7

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM node:22-alpine
2+
3+
WORKDIR /app
4+
5+
RUN npm install -g @upstash/context7-mcp@2.1.4
6+
7+
ENV MCP_TRANSPORT=http
8+
ENV PORT=8080
9+
10+
EXPOSE 8080
11+
12+
CMD ["context7-mcp", "--transport", "http", "--port", "8080"]

0 commit comments

Comments
 (0)