ci: del unnecessary image
Some checks failed
build-docker-images-for-latest-release / build-and-push (push) Waiting to run
build-docker-images-for-latest-release-github-ver / build-and-push (push) Has been cancelled

This commit is contained in:
fly6516 2025-01-01 06:22:23 +08:00
parent 46b2c66a60
commit 04b6122ea2
2 changed files with 11 additions and 11 deletions

View File

@ -1,4 +1,4 @@
name: build-docker-images-for-latest-release name: build-docker-images-for-latest-release-github-ver
on: on:
push: push:

View File

@ -14,16 +14,16 @@ jobs:
- name: Checkout repository - name: Checkout repository
uses: http://fly6516.synology.me:4000/Gitea_Action/checkout@v2 uses: http://fly6516.synology.me:4000/Gitea_Action/checkout@v2
# Pre-pull image if needed # # Pre-pull image if needed
- name: Pre Pull Image if Needed # - name: Pre Pull Image if Needed
run: | # run: |
IMAGE_NAME="dockerp.com/moby/buildkit:buildx-stable-1" # IMAGE_NAME="dockerp.com/moby/buildkit:buildx-stable-1"
if ! docker image inspect "$IMAGE_NAME" > /dev/null 2>&1; then # if ! docker image inspect "$IMAGE_NAME" > /dev/null 2>&1; then
echo "Image does not exist locally. Pulling..." # echo "Image does not exist locally. Pulling..."
docker pull "$IMAGE_NAME" # docker pull "$IMAGE_NAME"
else # else
echo "Image already exists locally." # echo "Image already exists locally."
fi # fi
# Set up Docker Buildx # Set up Docker Buildx
- name: Set up Docker Buildx - name: Set up Docker Buildx