Skip to content

Commit 5c290bb

Browse files
committed
remove env files
1 parent 05e7cbe commit 5c290bb

File tree

4 files changed

+23
-26
lines changed

4 files changed

+23
-26
lines changed

.env.example

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,3 @@
33

44
# OpenAI API Key
55
OPENAI_API_KEY=your_openai_api_key_here
6-
7-
# Application Settings
8-
NODE_ENV=development

.env.prod

Lines changed: 0 additions & 8 deletions
This file was deleted.

.env.prod.example

Lines changed: 0 additions & 8 deletions
This file was deleted.

.github/workflows/build.yaml

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
name: Build Image for API
1+
name: Build and Push Docker Image
22

33
on:
44
push:
55
branches:
66
- main
7+
pull_request:
8+
branches:
9+
- main
710

811
jobs:
912
build:
@@ -15,9 +18,6 @@ jobs:
1518
steps:
1619
- name: Checkout code
1720
uses: actions/checkout@v4
18-
with:
19-
submodules: true
20-
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
2121

2222
- name: Set up Docker Buildx
2323
uses: docker/setup-buildx-action@v3
@@ -33,7 +33,23 @@ jobs:
3333
id: sha
3434
run: echo "SHORT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
3535

36+
- name: Extract metadata
37+
id: meta
38+
uses: docker/metadata-action@v5
39+
with:
40+
images: ghcr.io/${{ github.repository_owner }}/paperdebugger-mcp-server
41+
tags: |
42+
type=ref,event=branch
43+
type=ref,event=pr
44+
type=sha,prefix={{branch}}-
45+
3646
- name: Build and push Docker image
37-
run: |
38-
docker build --no-cache -t ghcr.io/paperdebugger/pd-core-latex:api-${{ steps.sha.outputs.SHORT_SHA }} -f docker/api/Dockerfile .
39-
docker push ghcr.io/paperdebugger/pd-core-latex:api-${{ steps.sha.outputs.SHORT_SHA }}
47+
uses: docker/build-push-action@v5
48+
with:
49+
context: .
50+
file: ./docker/Dockerfile
51+
push: true
52+
tags: ${{ steps.meta.outputs.tags }}
53+
labels: ${{ steps.meta.outputs.labels }}
54+
cache-from: type=gha
55+
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)