# Can't get manifest plugin to work correctly (w/ 1.0RC1)

**URL:** <https://drone.discourse.group/t/cant-get-manifest-plugin-to-work-correctly-w-1-0rc1/5042>\
**Category:** Drone Support\
**Created:** [November 17, 2018, 12:38am UTC](https://drone.discourse.group/t/cant-get-manifest-plugin-to-work-correctly-w-1-0rc1/5042 "2018-11-17T00:38:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![djmaze](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/djmaze/32/3788_2.png) [@djmaze](https://drone.discourse.group/u/djmaze)\
**Post date:** [November 17, 2018, 12:38am UTC](https://drone.discourse.group/t/cant-get-manifest-plugin-to-work-correctly-w-1-0rc1/5042/1 "2018-11-17T00:38:25Z")

</div>

I want to generate a docker manifest in my pipeline. As I am using auto-tagging with the platform-specific images, the manifest should generate those versions (e.g. `0.9.3` / `0.9`) as well.

Since this is not properly documented with the manifest plugin, I’ve tried it this way:

```auto
steps:
  - name: manifest
    image: plugins/manifest
    settings:
      target: my/image:${DRONE_TAG}
      template: my/image:${DRONE_TAG}-ARCH
      username:
        from_secret: docker_username
      password:
        from_secret: docker_password
      platforms:
        - linux/amd64
        - linux/arm

```

But it seems Drone won’t escape the variables inside the plugin settings.

My second approach was to use a manifest template with the `spec` and `auto_tag` options, so the config looks like this:

```auto
steps:
  - name: manifest
    image: plugins/manifest
    settings:
      spec: manifest.tmpl
      auto_tag: true
      username:
        from_secret: docker_username
      password:
        from_secret: docker_password
      platforms:
        - linux/amd64
        - linux/arm

```

This is not properly documented as well, so I took the [template I found in the plugin’s repository](https://github.com/drone-plugins/drone-manifest/blob/master/manifest.tmpl) and adjusted it slightly for my image name. Using that, I get the following output in the manifest step:

```auto
2018/11/17 00:19:10 pushing by spec
time="2018-11-17T00:19:10Z" level=fatal msg="Can't unmarshal YAML file \"/drone/src/manifest-014888304\": yaml: mapping values are not allowed in this context" 
2018/11/17 00:19:10 exit status 1

```

What is the right way to do this?

---

<div class="post-metadata">

**Author:** ![bradrydzewski](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/bradrydzewski/32/3513_2.png) [@bradrydzewski](https://drone.discourse.group/u/bradrydzewski)\
**Post date:** [November 17, 2018, 2:24am UTC](https://drone.discourse.group/t/cant-get-manifest-plugin-to-work-correctly-w-1-0rc1/5042/2 "2018-11-17T02:24:51Z")

</div>

I’d recommend opening an issue in the repository to get some help (the plugin author does not use discourse and won’t see this). I also had trouble figuring out how to use this plugin, and think it would benefit from some documentation and maybe some UX improvements.

---

<div class="post-metadata">

**Author:** ![djmaze](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/djmaze/32/3788_2.png) [@djmaze](https://drone.discourse.group/u/djmaze)\
**Post date:** [November 17, 2018, 10:43am UTC](https://drone.discourse.group/t/cant-get-manifest-plugin-to-work-correctly-w-1-0rc1/5042/3 "2018-11-17T10:43:13Z")

</div>

Thanks, I opened an [issue](https://github.com/drone-plugins/drone-manifest/issues/10).
