mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-06 04:54:29 +08:00
Add steps for CUDA 12 image (#2255)
This commit is contained in:
parent
a97df0e536
commit
f103efdc56
2 changed files with 15 additions and 3 deletions
9
.github/workflows/deploy.yml
vendored
9
.github/workflows/deploy.yml
vendored
|
@ -108,6 +108,9 @@ jobs:
|
|||
# The assets job may push new commit, so we wait for it
|
||||
needs: [assets]
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
cuda: ["11.8", "12.2"]
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- run: |
|
||||
|
@ -132,8 +135,8 @@ jobs:
|
|||
flavor: |
|
||||
latest=false
|
||||
tags: |
|
||||
type=semver,pattern={{version}}-cuda11.8
|
||||
type=raw,value=latest-cuda11.8
|
||||
type=semver,pattern={{version}}-cuda${{ matrix.cuda }}
|
||||
type=raw,value=latest-cuda${{ matrix.cuda }}
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
|
@ -142,7 +145,7 @@ jobs:
|
|||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
build-args: |
|
||||
BASE_IMAGE=ghcr.io/livebook-dev/utils:elixir-${{ env.elixir }}-erlang-${{ env.otp }}-cuda11.8
|
||||
BASE_IMAGE=ghcr.io/livebook-dev/utils:elixir-${{ env.elixir }}-erlang-${{ env.otp }}-cuda${{ matrix.cuda }}
|
||||
|
||||
create_draft_release:
|
||||
if: github.ref_type == 'tag'
|
||||
|
|
|
@ -15,3 +15,12 @@ docker buildx build --push --platform linux/amd64,linux/arm64 \
|
|||
--build-arg CUDA_VERSION=11.8.0 \
|
||||
-f docker/base/elixir-cuda.dockerfile \
|
||||
docker/base
|
||||
|
||||
docker buildx build --push --platform linux/amd64,linux/arm64 \
|
||||
-t ghcr.io/livebook-dev/utils:elixir-$elixir-erlang-$otp-cuda12.2 \
|
||||
--build-arg ELIXIR_VERSION=$elixir \
|
||||
--build-arg ERLANG_VERSION=$otp \
|
||||
--build-arg UBUNTU_VERSION=$ubuntu \
|
||||
--build-arg CUDA_VERSION=12.2.0 \
|
||||
-f docker/base/elixir-cuda.dockerfile \
|
||||
docker/base
|
||||
|
|
Loading…
Add table
Reference in a new issue