Skip to content

implement version file parameter #116

@bradrydzewski

Description

@bradrydzewski

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: VERSION

The 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)
-	}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions