Drone convert 0.8 1.0 differences?

I have an older pipeline example running off of helm charts:

pipeline:

ping:
image: docker
environment:
DOCKER_HOST: unix:///drone/docker.sock
commands:
- sleep 10 # give docker enough time to initialize
- echo $GITKEY
- echo “Hello world”
- docker ps -a
- sleep 90000

services:
docker:
image: docker:dind
privileged: true
command: [ ‘-H’, ‘unix:///drone/docker.sock’ ]

This will work 100% of the time and connect successfully. After running drone convert, the following is the .drone.yml file:


kind: pipeline
name: default

platform:
os: linux
arch: amd64

steps:

  • name: ping
    image: docker
    commands:
    • sleep 30
    • echo “Hello world”
    • docker ps -a
      environment:
      DOCKER_HOST: unix:///drone/docker.sock

services:

  • name: docker
    pull: if-not-exists
    image: docker:dind
    command:
    • -H
    • unix:///drone/docker.sock
      privileged: true

And the ping step can never successfully execute docker ps.

My question is why? Additionally, if that is just a known issue with 1.0, how would I add an environment variable to the original pipeline from a secret.

Thanks