You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Set and export image name
+ if [ -n "${!spin_image_var_name}" ]; then
+ full_docker_image_name="${image_prefix}/${!spin_image_var_name}"
+ else
+ full_docker_image_name="${image_prefix}/$(echo "$dockerfile" | tr '[:upper:]' '[:lower:]')"
+ fi
versioned_image="${full_docker_image_name}:${image_tag}"
latest_image="${full_docker_image_name}:latest"
# Export the versioned image name for other scripts to use
export "$spin_image_var_name=$versioned_image"
my idea here is different from the documentation, that instead of using SPIN_IMAGE_DOCKERFILE="localhost:5080/example-app:latest", I would do SPIN_IMAGE_DOCKERFILE="example-app", considering that the variables SPIN_REGISTRY_PORT, SPIN_BUILD_IMAGE_PREFIX and SPIN_BUILD_TAG already exist.
What do you think?
The text was updated successfully, but these errors were encountered:
Current Behavior
Current Behavior
I set SPIN_IMAGE_DOCKERFILE and continue using image name localhost:5080/dockerfile:latest
Expected Behavior
I set SPIN_IMAGE_DOCKERFILE as localhost:5080/aplication:latest and on spin deploy create an image with name example.com:5080/aplication:latest
Steps To Reproduce
on template laravel, set on .env.production:
SPIN_IMAGE_DOCKERFILE=localhost:5080/aplication:latest
then run spin deploy, you will see the image name as localhost:5080/dockerfile:latest
Environment
Anything else?
unfortunately in v3 it still continues, but I saw that the code changed little kkkk
I made the following changes, see what you think, around line 228 of the deploy.sh file I modified it and it looked like this:
spin_image_var_name="SPIN_IMAGE_${spin_image_var_name}"
my idea here is different from the documentation, that instead of using
SPIN_IMAGE_DOCKERFILE="localhost:5080/example-app:latest",
I would doSPIN_IMAGE_DOCKERFILE="example-app"
, considering that the variablesSPIN_REGISTRY_PORT
,SPIN_BUILD_IMAGE_PREFIX
andSPIN_BUILD_TAG
already exist.What do you think?
The text was updated successfully, but these errors were encountered: