Skip to content

Scope wildcard for environment variables in auto devops doesn't work

Summary

Use scope wildcard for environment variables doesn't work

Steps to reproduce

Set a scoped variable. In my particular case AUTO_DEVOPS_BUILD_IMAGE_EXTRA_ARGS that set --build-arg=config_env=Review for environment configuration.

image

use that in auto devops custom dockerfile as

ARG config_env=Production
ENV CONFIG_ENVIRONMENT=$config_env

Printed CONFIG_ENVIRONMENT value is "Production"

Use * wildcard in previous scoped variable print correct "Review" value.

Output of checks

This bug happens on GitLab.com

Edited by federicopuntoni