Skip to content

Receiving "error in the configuration: both spec and arguments provided: configuration error" #41

@joe-elliott

Description

@joe-elliott

So this seems to be related to this change:

#40

Our configuration looks like:

- image: plugins/manifest
  name: manifest-tempo
  settings:
    password:
      from_secret: docker_password
    spec: .drone/docker-manifest.tmpl
    target: tempo
    username:
      from_secret: docker_username

and our template looks like:


image: grafana/{{config.target}}
tags:
  - latest
  - {{build.tags}}
manifests:
  - image: grafana/{{config.target}}:{{build.tags}}-amd64
    platform:
      architecture: amd64
      os: linux
  - image: grafana/{{config.target}}:{{build.tags}}-arm64
    platform:
      architecture: arm64
      os: linux

in particular this condition is causing our issue:

} else if len(args.Platforms) != 0 || args.Target != "" || args.Template != "" {

is it intentional that we can't provide a target and a template? note that we use the target in our template. is there a better way to do that?

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