File tree Expand file tree Collapse file tree 4 files changed +23
-26
lines changed
Expand file tree Collapse file tree 4 files changed +23
-26
lines changed Original file line number Diff line number Diff line change 33
44# OpenAI API Key
55OPENAI_API_KEY = your_openai_api_key_here
6-
7- # Application Settings
8- NODE_ENV = development
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- name : Build Image for API
1+ name : Build and Push Docker Image
22
33on :
44 push :
55 branches :
66 - main
7+ pull_request :
8+ branches :
9+ - main
710
811jobs :
912 build :
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
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
You can’t perform that action at this time.
0 commit comments