This commit is contained in:
parent
9270db7de4
commit
3d34cbd82a
@ -17,13 +17,14 @@ jobs:
|
||||
run: |
|
||||
if docker image inspect ubuntu:latest >/dev/null 2>&1; then
|
||||
echo "Ubuntu latest image is already present locally. Skipping pull."
|
||||
echo "::set-output name=should_pull::false"
|
||||
echo "should_pull=false" >> $GITEA_OUTPUT
|
||||
else
|
||||
echo "Ubuntu latest image is not present locally. Will pull."
|
||||
echo "::set-output name=should_pull::true"
|
||||
echo "should_pull=true" >> $GITEA_OUTPUT
|
||||
fi
|
||||
|
||||
- name: 本地没有构建机器,下载ubuntu-latest
|
||||
# 本地没有镜像时,下载 ubuntu-latest
|
||||
- name: 下载 ubuntu-latest 镜像
|
||||
if: steps.check_ubuntu_image.outputs.should_pull == 'true'
|
||||
run: docker pull ubuntu:latest
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user