Skip to content

Commit 8d8538e

Browse files
slarenarthw
authored andcommitted
docker : build images only once (ggml-org#9225)
1 parent d1ea9cf commit 8d8538e

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

.github/workflows/docker.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -96,21 +96,12 @@ jobs:
9696
env:
9797
GITHUB_REPOSITORY_OWNER: '${{ github.repository_owner }}'
9898

99-
- name: Build and push Docker image (versioned)
99+
- name: Build and push Docker image (tagged + versioned)
100100
if: github.event_name == 'push'
101-
uses: docker/build-push-action@v4
101+
uses: docker/build-push-action@v6
102102
with:
103103
context: .
104104
push: true
105105
platforms: ${{ matrix.config.platforms }}
106-
tags: "ghcr.io/${{ env.repository_owner_lowercase }}/llama.cpp:${{ matrix.config.tag }}-${{ env.COMMIT_SHA }}"
107-
file: ${{ matrix.config.dockerfile }}
108-
109-
- name: Build and push Docker image (tagged)
110-
uses: docker/build-push-action@v4
111-
with:
112-
context: .
113-
push: ${{ github.event_name == 'push' }}
114-
platforms: ${{ matrix.config.platforms }}
115-
tags: "ghcr.io/${{ env.repository_owner_lowercase }}/llama.cpp:${{ matrix.config.tag }},ghcr.io/${{ env.repository_owner_lowercase }}/llama.cpp:${{ matrix.config.tag }}-${{ steps.tag.outputs.name }}"
106+
tags: "ghcr.io/${{ env.repository_owner_lowercase }}/llama.cpp:${{ matrix.config.tag }}-${{ env.COMMIT_SHA }},ghcr.io/${{ env.repository_owner_lowercase }}/llama.cpp:${{ matrix.config.tag }},ghcr.io/${{ env.repository_owner_lowercase }}/llama.cpp:${{ matrix.config.tag }}-${{ steps.tag.outputs.name }}"
116107
file: ${{ matrix.config.dockerfile }}

0 commit comments

Comments
 (0)