Release v1.0.5
Some checks failed
自动版本发布 / create-readme (push) Failing after 1m15s

This commit is contained in:
iorebuild 2025-04-10 20:07:21 +08:00
parent 3d34cbd82a
commit 5ddfda604d

View File

@ -12,21 +12,20 @@ jobs:
if: "contains(github.event.head_commit.message, 'Release')"
steps:
- name: 检查本地是否已经有 ubuntu-latest 镜像
id: check_ubuntu_image
- name: 检查本地是否已经有 gitea/runner-images:ubuntu-latest 镜像
id: check_image
run: |
if docker image inspect ubuntu:latest >/dev/null 2>&1; then
echo "Ubuntu latest image is already present locally. Skipping pull."
if docker image inspect gitea/runner-images:ubuntu-latest >/dev/null 2>&1; then
echo "gitea/runner-images:ubuntu-latest image is already present locally. Skipping pull."
echo "should_pull=false" >> $GITEA_OUTPUT
else
echo "Ubuntu latest image is not present locally. Will pull."
echo "gitea/runner-images:ubuntu-latest image is not present locally. Will pull."
echo "should_pull=true" >> $GITEA_OUTPUT
fi
# 本地没有镜像时,下载 ubuntu-latest
- name: 下载 ubuntu-latest 镜像
if: steps.check_ubuntu_image.outputs.should_pull == 'true'
run: docker pull ubuntu:latest
- name: 下载 gitea/runner-images:ubuntu-latest 镜像
if: steps.check_image.outputs.should_pull == 'true'
run: docker pull gitea/runner-images:ubuntu-latest
- name: 替换软件源为国内软件源
run: |