File tree Expand file tree Collapse file tree 2 files changed +40
-1
lines changed Expand file tree Collapse file tree 2 files changed +40
-1
lines changed Original file line number Diff line number Diff line change 5
5
push :
6
6
tags :
7
7
- " *"
8
- workflow_dispatch : # This line allows manual triggering
9
8
10
9
jobs :
11
10
build :
Original file line number Diff line number Diff line change
1
+ name : Docker Compose Build on Main Branch
2
+
3
+ on :
4
+ workflow_dispatch : # This line allows manual triggering
5
+
6
+ jobs :
7
+ build :
8
+ runs-on : ubuntu-latest
9
+
10
+ steps :
11
+ # Check out the repository
12
+ - name : Checkout
13
+ uses : actions/checkout@v2
14
+
15
+ # Set up Docker
16
+ - name : Set up Docker
17
+ uses : docker/setup-buildx-action@v1
18
+
19
+ # Log in to GitHub Container Registry
20
+ - name : Log in to GitHub Container Registry
21
+ uses : docker/login-action@v2
22
+ with :
23
+ registry : ghcr.io
24
+ username : ${{ github.actor }}
25
+ password : ${{ secrets.GITHUB_TOKEN }}
26
+
27
+ # Run docker-compose build
28
+ - name : Build Docker images
29
+ run : |
30
+ cp .env.example .env
31
+ docker-compose build
32
+ docker build -f Dockerfile.multi --target api-build -t librechat-api .
33
+
34
+ # Tag and push the images with the 'latest' tag
35
+ - name : Tag image and push
36
+ run : |
37
+ docker tag librechat:latest ghcr.io/${{ github.repository_owner }}/librechat:latest
38
+ docker push ghcr.io/${{ github.repository_owner }}/librechat:latest
39
+ docker tag librechat-api:latest ghcr.io/${{ github.repository_owner }}/librechat-api:latest
40
+ docker push ghcr.io/${{ github.repository_owner }}/librechat-api:latest
You can’t perform that action at this time.
0 commit comments