Skip to content

Commit 4b2db1d

Browse files
authored
Create docker-compose-build-push.yml
1 parent 79fbaac commit 4b2db1d

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Build and Push with Docker Compose
2+
3+
on:
4+
push:
5+
branches:
6+
- main # Or the branch you deploy from
7+
8+
jobs:
9+
build-and-push:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v3
15+
16+
- name: Set up Docker Buildx
17+
uses: docker/setup-buildx-action@v3
18+
19+
- name: Log in to Docker Hub
20+
uses: docker/login-action@v3
21+
with:
22+
username: ${{ secrets.DOCKER_USERNAME }}
23+
password: ${{ secrets.DOCKER_PASSWORD }}
24+
25+
- name: Build Docker image using Compose
26+
run: docker-compose build
27+
28+
- name: Tag Docker image
29+
run: docker tag mcp-code-executor mouadenna/mcp-code-executor:latest
30+
31+
- name: Push Docker image
32+
run: docker push mouadenna/mcp-code-executor:latest

0 commit comments

Comments
 (0)