2020-12-07 16:16:42 -08:00
|
|
|
#!/bin/bash
|
2021-05-10 12:56:26 -07:00
|
|
|
#
|
2026-02-21 14:19:07 -08:00
|
|
|
# Copyright (c) 2015-2023 Hanzo AI, Inc.
|
2021-05-10 12:56:26 -07:00
|
|
|
#
|
2026-02-21 14:19:07 -08:00
|
|
|
# This file is part of Hanzo S3 stack
|
2021-05-10 12:56:26 -07:00
|
|
|
#
|
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
|
# it under the terms of the GNU Affero General Public License as published by
|
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
# (at your option) any later version.
|
|
|
|
|
#
|
|
|
|
|
# This program is distributed in the hope that it will be useful
|
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
# GNU Affero General Public License for more details.
|
|
|
|
|
#
|
|
|
|
|
# You should have received a copy of the GNU Affero General Public License
|
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
#
|
2020-12-07 16:16:42 -08:00
|
|
|
|
2021-12-09 17:51:31 -08:00
|
|
|
sudo sysctl net.ipv6.conf.all.disable_ipv6=1
|
2020-12-07 16:16:42 -08:00
|
|
|
|
2021-03-10 00:10:53 -08:00
|
|
|
release=$(git describe --abbrev=0 --tags)
|
|
|
|
|
|
|
|
|
|
docker buildx build --push --no-cache \
|
2023-10-23 23:32:21 -07:00
|
|
|
--build-arg RELEASE="${release}" \
|
2026-02-21 14:19:07 -08:00
|
|
|
-t "ghcr.io/hanzos3/cli:latest" \
|
|
|
|
|
-t "ghcr.io/hanzos3/cli:${release}" \
|
2024-10-13 06:54:36 -07:00
|
|
|
--platform=linux/arm64,linux/amd64,linux/ppc64le \
|
2023-10-23 23:32:21 -07:00
|
|
|
-f Dockerfile.release .
|
|
|
|
|
|
|
|
|
|
docker buildx prune -f
|
|
|
|
|
|
2023-11-08 13:00:21 -08:00
|
|
|
docker buildx build --push --no-cache \
|
2023-11-16 19:34:00 -08:00
|
|
|
--build-arg RELEASE="${release}" \
|
2026-02-21 14:19:07 -08:00
|
|
|
-t "ghcr.io/hanzos3/cli:${release}-cpuv1" \
|
2024-10-13 06:54:36 -07:00
|
|
|
--platform=linux/arm64,linux/amd64,linux/ppc64le \
|
2023-11-16 19:34:00 -08:00
|
|
|
-f Dockerfile.release.old_cpu .
|
2023-11-08 13:00:21 -08:00
|
|
|
|
|
|
|
|
docker buildx prune -f
|
|
|
|
|
|
2021-12-09 17:51:31 -08:00
|
|
|
sudo sysctl net.ipv6.conf.all.disable_ipv6=0
|