|
20 | 20 | - name: Set up Docker Buildx |
21 | 21 | uses: docker/setup-buildx-action@v3 |
22 | 22 |
|
| 23 | + - name: Set lowercase owner |
| 24 | + run: echo "OWNER=$(echo '${{ github.repository_owner }}' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV |
| 25 | + |
23 | 26 | - name: Log in to GitHub Container Registry |
24 | 27 | uses: docker/login-action@v3 |
25 | 28 | with: |
|
36 | 39 | platforms: linux/amd64,linux/arm64 |
37 | 40 | push: true |
38 | 41 | 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 |
41 | 44 | labels: org.opencontainers.image.source=https://github.com/${{ github.repository }} |
42 | 45 | cache-from: type=gha |
43 | 46 | cache-to: type=gha,mode=max |
|
50 | 53 | target: runtime-cuda |
51 | 54 | platforms: linux/amd64 |
52 | 55 | push: true |
53 | | - tags: ghcr.io/${{ github.repository_owner }}/main-inferpage:cuda |
| 56 | + tags: ghcr.io/${{ env.OWNER }}/main-inferpage:cuda |
54 | 57 | labels: org.opencontainers.image.source=https://github.com/${{ github.repository }} |
55 | 58 | cache-from: type=gha |
56 | 59 | cache-to: type=gha,mode=max |
|
63 | 66 | target: runtime-ollama |
64 | 67 | platforms: linux/amd64,linux/arm64 |
65 | 68 | push: true |
66 | | - tags: ghcr.io/${{ github.repository_owner }}/main-inferpage:ollama |
| 69 | + tags: ghcr.io/${{ env.OWNER }}/main-inferpage:ollama |
67 | 70 | labels: org.opencontainers.image.source=https://github.com/${{ github.repository }} |
68 | 71 | cache-from: type=gha |
69 | 72 | cache-to: type=gha,mode=max |
|
76 | 79 | target: runtime-ollama-bundled |
77 | 80 | platforms: linux/amd64,linux/arm64 |
78 | 81 | push: true |
79 | | - tags: ghcr.io/${{ github.repository_owner }}/main-inferpage:ollama-bundled |
| 82 | + tags: ghcr.io/${{ env.OWNER }}/main-inferpage:ollama-bundled |
80 | 83 | labels: org.opencontainers.image.source=https://github.com/${{ github.repository }} |
81 | 84 | cache-from: type=gha |
82 | 85 | cache-to: type=gha,mode=max |
|
87 | 90 | -H "Accept: application/vnd.github+json" \ |
88 | 91 | -H "X-GitHub-Api-Version: 2022-11-28" \ |
89 | 92 | /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" |
91 | 94 | env: |
92 | 95 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
0 commit comments