Skip to content

Commit

Permalink
i might have broke all the things
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoffi authored Jan 25, 2023
1 parent 176e5e1 commit ad36238
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker/anywhere-tailscale/hooks/build
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

# Set image type based on build argument
if [ $DOCKER_TAG = "cpu" ]; then
docker build . --cache-from rayproject/ray:2.2.0-py38-cpu -t jcoffi/cluster-anywhere:cpu --build-arg IMAGETYPE=cpu || shutdown -r now
docker build . --cache-from rayproject/ray:2.2.0-py38-cpu -t jcoffi/cluster-anywhere:cpu --build-arg IMAGETYPE=cpu
elif [ $DOCKER_TAG = "gpu" ]; then
docker build . --cache-from jcoffi/cluster-anywhere:cpu -t jcoffi/cluster-anywhere:gpu --build-arg IMAGETYPE=gpu || shutdown -r now
docker build . --cache-from jcoffi/cluster-anywhere:cpu -t jcoffi/cluster-anywhere:gpu --build-arg IMAGETYPE=gpu
else
docker build . --cache-from jcoffi/cluster-anywhere:cpu -t jcoffi/cluster-anywhere:$DOCKER_TAG --build-arg IMAGETYPE=$DOCKER_TAG || shutdown -r now
docker build . --cache-from jcoffi/cluster-anywhere:cpu -t jcoffi/cluster-anywhere:$DOCKER_TAG --build-arg IMAGETYPE=$DOCKER_TAG
fi

0 comments on commit ad36238

Please sign in to comment.