mirror of
https://github.com/rustfs/rustfs.git
synced 2026-10-31 08:16:35 +00:00
a86117590c
* fix(ci): prepare pinned Compose for Connect acceptance Install the verified Compose CLI through one local action shared by all 11 connected acceptance entry points. Publish only checksum-verified binaries and keep daemon, provenance and timeout gates unchanged. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> * fix(ci): use daemon-visible Connect temporary inputs Match the existing official Connect acceptance TMPDIR contract in all 11 real E2E invocations so daemon bind mounts can read generated inputs. Preserve key modes, read-only mounts and cleanup checks. Co-Authored-By: heihutu <heihutu@gmail.com> Co-Authored-By: zhi22915 <qiuzgang@gmail.com> --------- Co-authored-by: heihutu <heihutu@gmail.com> Co-authored-by: zhi22915 <qiuzgang@gmail.com>
40 lines
1.7 KiB
YAML
40 lines
1.7 KiB
YAML
# Copyright 2024 RustFS Team
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
name: Set up Docker Compose
|
|
description: Install the verified Compose CLI used by native Linux x86_64 Connect acceptance
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Install verified Docker Compose CLI plugin
|
|
shell: bash
|
|
run: |
|
|
set -euo pipefail
|
|
[[ $(uname -s) == Linux && $(uname -m) == x86_64 ]]
|
|
plugin_dir="${DOCKER_CONFIG:-$HOME/.docker}/cli-plugins"
|
|
mkdir -p "$plugin_dir"
|
|
compose_download=$(mktemp "${RUNNER_TEMP:?}/connect-compose.XXXXXX")
|
|
compose_staged=$(mktemp "$plugin_dir/.docker-compose.XXXXXX")
|
|
trap 'rm -f "$compose_download" "$compose_staged"' EXIT
|
|
curl --fail --location --retry 3 \
|
|
https://github.com/docker/compose/releases/download/v2.40.3/docker-compose-linux-x86_64 \
|
|
--output "$compose_download"
|
|
printf '%s %s\n' \
|
|
dba9d98e1ba5bfe11d88c99b9bd32fc4a0624a30fafe68eea34d61a3e42fd372 \
|
|
"$compose_download" | sha256sum --check --strict
|
|
install -m 0755 "$compose_download" "$compose_staged"
|
|
mv -f "$compose_staged" "$plugin_dir/docker-compose"
|
|
[[ $(docker compose version --short) == 2.40.3 ]]
|