Skip to content

Commit 4dc0cb1

Browse files
author
wisedev
committed
feat: fix docker pipeline
1 parent bd6a50e commit 4dc0cb1

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/docker-publish-inferpage.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ jobs:
2020
- name: Set up Docker Buildx
2121
uses: docker/setup-buildx-action@v3
2222

23+
- name: Set lowercase owner
24+
run: echo "OWNER=$(echo '${{ github.repository_owner }}' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
25+
2326
- name: Log in to GitHub Container Registry
2427
uses: docker/login-action@v3
2528
with:
@@ -36,8 +39,8 @@ jobs:
3639
platforms: linux/amd64,linux/arm64
3740
push: true
3841
tags: |
39-
ghcr.io/${{ github.repository_owner }}/main-inferpage:cpu
40-
ghcr.io/${{ github.repository_owner }}/main-inferpage:latest
42+
ghcr.io/${{ env.OWNER }}/main-inferpage:cpu
43+
ghcr.io/${{ env.OWNER }}/main-inferpage:latest
4144
labels: org.opencontainers.image.source=https://github.com/${{ github.repository }}
4245
cache-from: type=gha
4346
cache-to: type=gha,mode=max
@@ -50,7 +53,7 @@ jobs:
5053
target: runtime-cuda
5154
platforms: linux/amd64
5255
push: true
53-
tags: ghcr.io/${{ github.repository_owner }}/main-inferpage:cuda
56+
tags: ghcr.io/${{ env.OWNER }}/main-inferpage:cuda
5457
labels: org.opencontainers.image.source=https://github.com/${{ github.repository }}
5558
cache-from: type=gha
5659
cache-to: type=gha,mode=max
@@ -63,7 +66,7 @@ jobs:
6366
target: runtime-ollama
6467
platforms: linux/amd64,linux/arm64
6568
push: true
66-
tags: ghcr.io/${{ github.repository_owner }}/main-inferpage:ollama
69+
tags: ghcr.io/${{ env.OWNER }}/main-inferpage:ollama
6770
labels: org.opencontainers.image.source=https://github.com/${{ github.repository }}
6871
cache-from: type=gha
6972
cache-to: type=gha,mode=max
@@ -76,7 +79,7 @@ jobs:
7679
target: runtime-ollama-bundled
7780
platforms: linux/amd64,linux/arm64
7881
push: true
79-
tags: ghcr.io/${{ github.repository_owner }}/main-inferpage:ollama-bundled
82+
tags: ghcr.io/${{ env.OWNER }}/main-inferpage:ollama-bundled
8083
labels: org.opencontainers.image.source=https://github.com/${{ github.repository }}
8184
cache-from: type=gha
8285
cache-to: type=gha,mode=max
@@ -87,6 +90,6 @@ jobs:
8790
-H "Accept: application/vnd.github+json" \
8891
-H "X-GitHub-Api-Version: 2022-11-28" \
8992
/user/packages/container/main-inferpage \
90-
-f visibility=public || echo "::warning::Could not set package visibility via API — set it manually at: https://github.com/users/${{ github.repository_owner }}/packages/container/main-inferpage/settings"
93+
-f visibility=public || echo "::warning::Could not set package visibility via API — set it manually at: https://github.com/users/${{ env.OWNER }}/packages/container/main-inferpage/settings"
9194
env:
9295
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)