Skip to content

Commit a79d932

Browse files
committed
fix: ci
1 parent 8157ef0 commit a79d932

File tree

1 file changed

+17
-20
lines changed

1 file changed

+17
-20
lines changed

.github/workflows/slmcp-docker.yml

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,23 @@ jobs:
1616
steps:
1717
- name: Checkout code
1818
uses: actions/checkout@v4
19-
- name: test
20-
run: |
21-
echo "test"
2219

23-
# - name: Set up Docker Buildx
24-
# uses: docker/setup-buildx-action@v3
20+
- name: Set up Docker Buildx
21+
uses: docker/setup-buildx-action@v3
2522

26-
# - name: Login to DockerHub
27-
# uses: docker/login-action@v3
28-
# with:
29-
# username: ${{ secrets.DOCKERIO_USERNAME }}
30-
# password: ${{ secrets.DOCKERIO_TOKEN }}
23+
- name: Login to DockerHub
24+
uses: docker/login-action@v3
25+
with:
26+
username: ${{ secrets.DOCKERIO_USERNAME }}
27+
password: ${{ secrets.DOCKERIO_TOKEN }}
3128

32-
# - name: Build and push
33-
# uses: docker/build-push-action@v5
34-
# with:
35-
# context: ./slmcp
36-
# push: true
37-
# tags: |
38-
# chaitin/safeline-mcp:latest
39-
# chaitin/safeline-mcp:${{ github.ref_name }}
40-
# cache-from: type=registry,ref=chaitin/safeline-mcp:buildcache
41-
# cache-to: type=registry,ref=chaitin/safeline-mcp:buildcache,mode=max
29+
- name: Build and push
30+
uses: docker/build-push-action@v5
31+
with:
32+
context: ./slmcp
33+
push: true
34+
tags: |
35+
chaitin/safeline-mcp:latest
36+
chaitin/safeline-mcp:${{ github.ref_name }}
37+
cache-from: type=registry,ref=chaitin/safeline-mcp:buildcache
38+
cache-to: type=registry,ref=chaitin/safeline-mcp:buildcache,mode=max

0 commit comments

Comments
 (0)