Deliver artifact file with dotenv formatted content
For the sake of Auto DevOps, rather than delivering the file as a container string, send it as dotenv formatted variables like this:
CI_APPLICATION_REPOSTIORY=$CI_REGISTRY_IMAGE
CI_APPLICATION_TAG=$CI_COMMIT_TAG
The commit tag one could be the whole commit hash if it's on a branch. For master it's latest and for a tag it's the tag. Will need to match some of the Auto DevOps logic to make sure the project group/name.
if [[ -z "$CI_COMMIT_TAG" ]]; then
image_repository=${CI_APPLICATION_REPOSITORY:-$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG}
image_tag=${CI_APPLICATION_TAG:-$CI_COMMIT_SHA}
else
image_repository=${CI_APPLICATION_REPOSITORY:-$CI_REGISTRY_IMAGE}
image_tag=${CI_APPLICATION_TAG:-$CI_COMMIT_TAG}
fi