Fixed typo
All checks were successful
Build a new image for the MycroForge docs / build (push) Has been skipped
All checks were successful
Build a new image for the MycroForge docs / build (push) Has been skipped
This commit is contained in:
parent
12a16be6ed
commit
e2940941a8
@ -20,20 +20,20 @@ jobs:
|
||||
|
||||
# Check if the image exists.
|
||||
# EXISTS = 0 if the image was found else 1.
|
||||
EXISTS=$(docker manifest inspect $VERSIONED_TAG > /dev/null 2>&1; echo $?)
|
||||
EXISTS=$(docker manifest inspect $VERSIONED_IMAGE_TAG > /dev/null 2>&1; echo $?)
|
||||
|
||||
# If the image does not exist, then build it.
|
||||
if [[ $EXISTS -eq 1 ]]; then
|
||||
echo "Building image $VERSIONED_TAG"
|
||||
echo "Building image $VERSIONED_IMAGE_TAG"
|
||||
docker build -t $VERSIONED_IMAGE_TAG -t $LATEST_IMAGE_TAG .
|
||||
|
||||
echo "Building image $VERSIONED_TAG"
|
||||
echo "Building image $VERSIONED_IMAGE_TAG"
|
||||
docker push $VERSIONED_IMAGE_TAG
|
||||
|
||||
echo "Building image $LATEST_IMAGE_TAG"
|
||||
docker push $LATEST_IMAGE_TAG
|
||||
# Else notify the user that the image tag already exists and exit with status code 1.
|
||||
else
|
||||
echo "Image $VERSIONED_TAG already exists, you should probably increment the version."
|
||||
echo "Image $VERSIONED_IMAGE_TAG already exists, you should probably increment the version."
|
||||
exit 1
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user