ci: add check for pulling image
Some checks failed
build-docker-images-for-latest-release / build-and-push (push) Failing after 2m57s
Some checks failed
build-docker-images-for-latest-release / build-and-push (push) Failing after 2m57s
This commit is contained in:
parent
98a77e6a69
commit
17f1c3beac
@ -24,9 +24,15 @@ jobs:
|
||||
uses: http://fly6516.synology.me:4000/Gitea_Action/checkout@v2
|
||||
|
||||
# pre pull image
|
||||
- name: pre pull image
|
||||
- name: Pre Pull Image if Needed
|
||||
run: |
|
||||
docker pull 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
|
||||
echo "Image does not exist locally. Pulling..."
|
||||
docker pull "$IMAGE_NAME"
|
||||
else
|
||||
echo "Image already exists locally."
|
||||
fi
|
||||
|
||||
# Create Docker configuration directory
|
||||
- name: Create Docker configuration directory
|
||||
|
Loading…
Reference in New Issue
Block a user