[Fixed] Tag is string or number? why convert it as number?

So build the image as below, and define one tag to 1.0, but got the real tag is 1 only. How to fix this problem?

    image: plugins/ecr
    repo: <account_id>.dkr.ecr.us-east-1.amazonaws.com/bar
    registry: <account_id>.dkr.ecr.us-east-1.amazonaws.com
-   tags: latest
+   tags:
+     - latest
+     - 1.0.1
+     - 1.0


I fixed with below changes, but not sure if this is a bug in drone.

-      - 1.0
+      - "1.0"

@ozbillwang this isn’t really something for drone to fix, it’s a yaml parsing issue. Yaml will parse the unquoted value as 1.0 and convert it to an integer. This can also happen if you truncate SHA hashes and the resulting value is a valid integer. Always best to quote those as well.

Thanks for the updates.

I got this code from http://plugins.drone.io/drone-plugins/drone-ecr/, seems this document need be updated, if it doesn’t work properly.

We are using version numbers in many of the drone yaml files without issue. For example https://github.com/drone-plugins/drone-git/blob/master/.drone.yml#L28

But with that being said, in some cases yaml variables may need to be quoted. If quoting the variable works for you I think we can close this topic.