1
This commit is contained in:
@ -34,7 +34,7 @@ jobs:
|
||||
sudo apt install -y software-properties-common
|
||||
sudo add-apt-repository -y ppa:deadsnakes/ppa
|
||||
sudo apt update
|
||||
sudo apt install -y python3.11 python3.11-venv python3.11-distutils python3-pip
|
||||
sudo apt install -y python3.11 python3.11-venv python3-pip
|
||||
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1
|
||||
python3 --version
|
||||
|
||||
@ -51,9 +51,18 @@ jobs:
|
||||
sudo apt update
|
||||
sudo apt install -y docker.io
|
||||
|
||||
- name: 安装 Docker Compose
|
||||
- name: 安装 Docker Compose(使用 GitHub 镜像加速)
|
||||
run: |
|
||||
sudo curl -L "https://github.com/docker/compose/releases/download/v2.23.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
|
||||
sudo apt update
|
||||
sudo apt install -y curl
|
||||
|
||||
# 设置 Docker Compose 版本
|
||||
COMPOSE_VERSION=v2.23.0
|
||||
|
||||
# 使用镜像加速下载
|
||||
sudo curl -L "https://ghproxy.com/https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m)" \
|
||||
-o /usr/local/bin/docker-compose
|
||||
|
||||
sudo chmod +x /usr/local/bin/docker-compose
|
||||
docker-compose --version
|
||||
|
||||
|
Reference in New Issue
Block a user