We have a pipeline that is doing double duty by deploying to both a staging environment and production. To accomplish this our pipeline has the following steps:
My question has to do with the fact that both steps 1 and 4 create artifacts called ".env". When step 2 runs, there's only one .env file artifact but there are potentially 2 when step 5 runs. Are artifacts overwritten when they have the same name or what? How can I be sure that step five uses the artifacts from step 4?
G'day, @James Meisler
Welcome to the community!
It’s difficult to provide a specific answer without seeing your YAML file, but generally speaking, if the artifacts are on different paths, having the same name shouldn’t be a problem. However, if they are on the same path, there could be an issue with overwriting.
You might want to consider generating the artifacts in separate paths for staging and production environments.
That said, if you need more in-depth support please raise a support ticket on our Support portal.
Regards,
Syahrul
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.