Skip to content

Commit

Permalink
ci: add input to extract binary (#50)
Browse files Browse the repository at this point in the history
Signed-off-by: Sertac Ozercan <[email protected]>
  • Loading branch information
sozercan authored Dec 24, 2023
1 parent a5066d3 commit 891688c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/extract-binary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: extract-binary

on:
workflow_dispatch:
inputs:
localai_version:
description: 'Version of local-ai container to extract artifacts from'
required: true

permissions:
packages: write
Expand All @@ -10,8 +14,6 @@ jobs:
extract-binary:
runs-on: ubuntu-latest
timeout-minutes: 240
env:
LOCAL_AI_VERSION: v2.1.0
steps:
- uses: easimon/maximize-build-space@master
with:
Expand All @@ -37,7 +39,7 @@ jobs:
- name: extract artifacts from local-ai container
run: |
crane export quay.io/go-skynet/local-ai:${LOCAL_AI_VERSION}-cublas-cuda12-core > export.tar
crane export quay.io/go-skynet/local-ai:${{ github.event.inputs.localai_version }}-cublas-cuda12-core > export.tar
tar -xvf export.tar build
- name: Login to GHCR
Expand All @@ -49,7 +51,7 @@ jobs:

- name: create and push oci artifact
run: |
oras push ghcr.io/sozercan/test/local-ai:${LOCAL_AI_VERSION}-cublas-cuda12-core \
oras push ghcr.io/sozercan/test/local-ai:${{ github.event.inputs.localai_version }}-cublas-cuda12-core \
build/local-ai:application/octet-stream \
build/backend-assets/:application/octet-stream
Expand Down

0 comments on commit 891688c

Please sign in to comment.