Skip to content

Commit 006dbf6

Browse files
[Nebius] Pre-build a Docker image with nebius CLI bundled (#3248)
1 parent 205a2cd commit 006dbf6

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,17 @@ jobs:
100100
VERSION=${{ needs.compute-version.outputs.version }}
101101
docker buildx build --platform linux/arm64/v8 --build-arg VERSION=$VERSION --push --provenance=false --tag dstackai/dstack:$VERSION-arm64 -f release/Dockerfile .
102102
docker buildx build --platform linux/amd64 --build-arg VERSION=$VERSION --push --provenance=false --tag dstackai/dstack:$VERSION-amd64 -f release/Dockerfile .
103+
docker buildx build --platform linux/arm64/v8 --build-arg BASE_IMAGE=dstackai/dstack:$VERSION-arm64 --push --provenance=false --tag dstackai/dstack:nebius-$VERSION-arm64 -f Dockerfile.nebius .
104+
docker buildx build --platform linux/amd64 --build-arg BASE_IMAGE=dstackai/dstack:$VERSION-amd64 --push --provenance=false --tag dstackai/dstack:nebius-$VERSION-amd64 -f Dockerfile.nebius .
103105
docker manifest create dstackai/dstack:$VERSION --amend dstackai/dstack:$VERSION-arm64 --amend dstackai/dstack:$VERSION-amd64
104106
docker manifest push dstackai/dstack:$VERSION
107+
docker manifest create dstackai/dstack:nebius-$VERSION --amend dstackai/dstack:nebius-$VERSION-arm64 --amend dstackai/dstack:nebius-$VERSION-amd64
108+
docker manifest push dstackai/dstack:nebius-$VERSION
105109
if [ -n "${{ needs.compute-version.outputs.latest }}" ]; then
106110
docker manifest create dstackai/dstack:latest --amend dstackai/dstack:$VERSION-arm64 --amend dstackai/dstack:$VERSION-amd64
107111
docker manifest push dstackai/dstack:latest
112+
docker manifest create dstackai/dstack:nebius-latest --amend dstackai/dstack:nebius-$VERSION-arm64 --amend dstackai/dstack:nebius-$VERSION-amd64
113+
docker manifest push dstackai/dstack:nebius-latest
108114
fi
109115
- name: Docker Hub Description
110116
uses: peter-evans/dockerhub-description@v4

docker/server/Dockerfile.nebius

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
ARG BASE_IMAGE
2+
3+
FROM ${BASE_IMAGE}
4+
5+
RUN curl -sSL https://storage.eu-north1.nebius.cloud/cli/install.sh | bash

0 commit comments

Comments
 (0)