Skip to content

Commit 1699c96

Browse files
committed
Simplify CI builds
Signed-off-by: Ettore Di Giacinto <[email protected]>
1 parent 7da886d commit 1699c96

File tree

2 files changed

+6
-15
lines changed

2 files changed

+6
-15
lines changed

.github/workflows/image_build.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ jobs:
157157
images: |
158158
quay.io/go-skynet/ci-tests
159159
tags: |
160-
type=ref,event=branch,suffix=localai${{ github.event.number }}
161-
type=semver,pattern={{raw}},suffix=localai${{ github.event.number }}
162-
type=sha,suffix=localai${{ github.event.number }}
160+
type=ref,event=branch,suffix=localai${{ github.event.number }}-${{ inputs.build-type }}-${{ inputs.cuda-major-version }}-${{ inputs.cuda-minor-version }}
161+
type=semver,pattern={{raw}},suffix=localai${{ github.event.number }}-${{ inputs.build-type }}-${{ inputs.cuda-major-version }}-${{ inputs.cuda-minor-version }}
162+
type=sha,suffix=localai${{ github.event.number }}-${{ inputs.build-type }}-${{ inputs.cuda-major-version }}-${{ inputs.cuda-minor-version }}
163163
flavor: |
164164
latest=${{ inputs.tag-latest }}
165165
suffix=${{ inputs.tag-suffix }}
@@ -269,10 +269,6 @@ jobs:
269269
push: true
270270
tags: ${{ steps.meta_pull_request.outputs.tags }}
271271
labels: ${{ steps.meta_pull_request.outputs.labels }}
272-
- name: Testing image
273-
if: github.event_name == 'pull_request'
274-
run: |
275-
echo "Image is available at quay.io/go-skynet/ci-tests:localai${{ github.event.number }}" >> $GITHUB_STEP_SUMMARY
276272
## End testing image
277273
- name: Build and push AIO image
278274
if: inputs.aio != ''

.github/workflows/python_backend_build.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ jobs:
109109
images: |
110110
quay.io/go-skynet/ci-tests
111111
tags: |
112-
type=ref,event=branch,suffix=${{ github.event.number }}
113-
type=semver,pattern={{raw}},suffix=${{ github.event.number }}
114-
type=sha,suffix=${{ github.event.number }}
112+
type=ref,event=branch,suffix=${{ github.event.number }}-${{ inputs.backend }}-${{ inputs.build-type }}-${{ inputs.cuda-major-version }}-${{ inputs.cuda-minor-version }}
113+
type=semver,pattern={{raw}},suffix=${{ github.event.number }}-${{ inputs.backend }}-${{ inputs.build-type }}-${{ inputs.cuda-major-version }}-${{ inputs.cuda-minor-version }}
114+
type=sha,suffix=${{ github.event.number }}-${{ inputs.backend }}-${{ inputs.build-type }}-${{ inputs.cuda-major-version }}-${{ inputs.cuda-minor-version }}
115115
flavor: |
116116
latest=${{ inputs.tag-latest }}
117117
suffix=${{ inputs.tag-suffix }}
@@ -178,11 +178,6 @@ jobs:
178178
tags: ${{ steps.meta_pull_request.outputs.tags }}
179179
labels: ${{ steps.meta_pull_request.outputs.labels }}
180180

181-
- name: Testing image
182-
if: github.event_name == 'pull_request'
183-
run: |
184-
echo "Image is available at quay.io/go-skynet/ci-tests:${{ github.event.number }}" >> $GITHUB_STEP_SUMMARY
185-
186181
- name: Cleanup
187182
run: |
188183
docker builder prune -f

0 commit comments

Comments
 (0)