-
Notifications
You must be signed in to change notification settings - Fork 324
Closed
Description
We previously implemented a temporary workaround to programmatic image tags by loading an environment file. I would like a more permanent solution based on some previous suggestions, specifically using a file to load tags.
We could add a tag_file field to the yaml that points to a version file:
pipeline:
docker:
image: plugins/docker
username: kevinbacon
password: pa55word
email: [email protected]
repo: foo/bar
tags: latest
+ version_file: VERSIONThe tag is read from the file. Example version file:
17.3
The version file will not override the tags attribute. Instead it should be appended to the tag list.
This means we should remove the prior workaround:
func main() {
- // Load env-file if it exists first
- if env := os.Getenv("PLUGIN_ENV_FILE"); env != "" {
- godotenv.Load(env)
- }jmccann and tuannvm
Metadata
Metadata
Assignees
Labels
No labels