mirror of
https://github.com/docker/cli.git
synced 2026-01-25 03:42:05 +03:00
Merge pull request #27126 from mlaventure/fix-tgz
Remove amd64 assumption in release.sh, cross and tgz scripts Upstream-commit: bd57e6d25c2c9d41a6cf2c9931606f58bb66a07d Component: engine
This commit is contained in:
@@ -10,13 +10,14 @@ daemonSupporting=(
|
||||
|
||||
# if we have our linux/amd64 version compiled, let's symlink it in
|
||||
if [ -x "$DEST/../binary-daemon/dockerd-$VERSION" ]; then
|
||||
mkdir -p "$DEST/linux/amd64"
|
||||
arch=$(go env GOHOSTARCH)
|
||||
mkdir -p "$DEST/linux/${arch}"
|
||||
(
|
||||
cd "$DEST/linux/amd64"
|
||||
cd "$DEST/linux/${arch}"
|
||||
ln -s ../../../binary-daemon/* ./
|
||||
ln -s ../../../binary-client/* ./
|
||||
)
|
||||
echo "Created symlinks:" "$DEST/linux/amd64/"*
|
||||
echo "Created symlinks:" "$DEST/linux/${arch}/"*
|
||||
fi
|
||||
|
||||
for platform in $DOCKER_CROSSPLATFORMS; do
|
||||
|
||||
@@ -4,7 +4,8 @@ CROSS="$DEST/../cross"
|
||||
|
||||
set -e
|
||||
|
||||
if [ ! -d "$CROSS/linux/amd64" ]; then
|
||||
arch=$(go env GOHOSTARCH)
|
||||
if [ ! -d "$CROSS/linux/${arch}" ]; then
|
||||
echo >&2 'error: binary and cross must be run before tgz'
|
||||
false
|
||||
fi
|
||||
|
||||
@@ -258,7 +258,7 @@ release_build() {
|
||||
|
||||
# Upload binaries and tgz files to S3
|
||||
release_binaries() {
|
||||
[ -e "bundles/$VERSION/cross/linux/amd64/docker-$VERSION" ] || {
|
||||
[ "$(find bundles/$VERSION -path "bundles/$VERSION/cross/*/*/docker-$VERSION")" != "" ] || {
|
||||
echo >&2 './hack/make.sh must be run before release_binaries'
|
||||
exit 1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user