Skip to content

Commit 58840a1

Browse files
committed
Merge branch 'fix-backslash-python3.10' of https://github.com/codelion/optillm into fix-backslash-python3.10
2 parents 910d3b3 + e14521b commit 58840a1

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

.github/workflows/publish.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -50,50 +50,50 @@ jobs:
5050
registry: ghcr.io
5151
username: ${{ github.actor }}
5252
password: ${{ secrets.GITHUB_TOKEN }}
53-
54-
- name: Extract metadata for Docker
55-
id: meta
53+
54+
# Extract metadata for proxy_only image
55+
- name: Extract metadata for proxy_only Docker
56+
id: meta-proxy
5657
uses: docker/metadata-action@v5
5758
with:
5859
images: ghcr.io/${{ github.repository }}
60+
flavor: |
61+
suffix=-slim
5962
tags: |
6063
type=semver,pattern={{version}}
6164
type=semver,pattern={{major}}.{{minor}}
6265
latest
6366
64-
- name: Build and push Docker image
67+
# Build and push proxy image
68+
- name: Build and push proxy_only Docker image
6569
uses: docker/build-push-action@v5
6670
with:
6771
context: .
72+
file: Dockerfile.proxy_only
6873
push: true
6974
platforms: linux/amd64,linux/arm64
70-
tags: ${{ steps.meta.outputs.tags }}
71-
labels: ${{ steps.meta.outputs.labels }}
72-
cache-from: type=gha
73-
cache-to: type=gha,mode=max
74-
75-
# Extract metadata for slim image
76-
- name: Extract metadata for proxy_only Docker
77-
id: meta-proxy
75+
tags: ${{ steps.meta-proxy.outputs.tags }}
76+
labels: ${{ steps.meta-proxy.outputs.labels }}
77+
cache-from: type=gha,scope=proxy
78+
cache-to: type=gha,scope=proxy,mode=max
79+
80+
- name: Extract metadata for Docker
81+
id: meta
7882
uses: docker/metadata-action@v5
7983
with:
8084
images: ghcr.io/${{ github.repository }}
81-
flavor: |
82-
suffix=-slim
8385
tags: |
8486
type=semver,pattern={{version}}
8587
type=semver,pattern={{major}}.{{minor}}
8688
latest
8789
88-
# Build and push slim image
89-
- name: Build and push proxy_only Docker image
90+
- name: Build and push Docker image
9091
uses: docker/build-push-action@v5
9192
with:
9293
context: .
93-
file: Dockerfile.proxy_only
9494
push: true
9595
platforms: linux/amd64,linux/arm64
96-
tags: ${{ steps.meta-proxy.outputs.tags }}
97-
labels: ${{ steps.meta-proxy.outputs.labels }}
98-
cache-from: type=gha,scope=proxy
99-
cache-to: type=gha,scope=proxy,mode=max
96+
tags: ${{ steps.meta.outputs.tags }}
97+
labels: ${{ steps.meta.outputs.labels }}
98+
cache-from: type=gha
99+
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)