We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4ea409 commit cb8ad98Copy full SHA for cb8ad98
1 file changed
.github/workflows/build-docker.yaml
@@ -16,6 +16,15 @@ jobs:
16
with:
17
submodules: "recursive"
18
19
+ - name: Set image tag
20
+ run: |
21
+ if [[ "${GITHUB_REF_TYPE}" == "tag" ]]; then
22
+ image_tag="${GITHUB_REF_NAME}"
23
+ else
24
+ image_tag="${GITHUB_REF_NAME//\//-}"
25
+ fi
26
+ echo "IMAGE_TAG=$image_tag" >> "$GITHUB_ENV"
27
+
28
- name: Set up QEMU
29
uses: docker/setup-qemu-action@v3
30
@@ -40,7 +49,7 @@ jobs:
40
49
platforms: linux/amd64,linux/arm64
41
50
tags: |
42
51
ghcr.io/abetlen/llama-cpp-python:latest
43
- ghcr.io/abetlen/llama-cpp-python:${{ github.ref_name }}
52
+ ghcr.io/abetlen/llama-cpp-python:${{ env.IMAGE_TAG }}
44
53
build-args: |
45
54
BUILDKIT_INLINE_CACHE=1
46
55
0 commit comments