```hcl

tag = true

pipeline "build" {
  step {
    type = "docker"
    image = "rls"
    context = "."
  }

  step {
    type = "docker-shell"
    image = "rls"
    volume "code" {
      source = "."
      dest = "/go/src/github.com/altipla-consulting/rls"
    }
    volume "binary" {
      source = "./tmp"
      dest = "/opt/build"
    }
  }
}

pipeline "deploy" {
  step {
    type = "shell"
    cmd = "mv tmp/builder tmp/builder.${TAG}"
  }

  step {
    type = "storage"
    bucket = "altipla-artifacts"
    path = "rls"
    public = true
    cache = false
    files = [
      "tmp/rls.${TAG}",
    ]
  }

  step {
    type = "git-tag"
    name = "${TAG}"
  }

  step {
    type = "shell"
    cmd = "rm tmp/builder.${TAG}"
  }
}
```

Fix name of stage release binary.
user
```hcl

tag = true

pipeline "build" {
  step {
    type = "docker"
    image = "rls"
    context = "."
  }

  step {
    type = "docker-shell"
    image = "rls"
    volume "code" {
      source = "."
      dest = "/go/src/github.com/altipla-consulting/rls"
    }
    volume "binary" {
      source = "./tmp"
      dest = "/opt/build"
    }
  }
}

pipeline "deploy" {
  step {
    type = "shell"
    cmd = "mv tmp/rls tmp/rls.${TAG}"
  }

  step {
    type = "storage"
    bucket = "altipla-artifacts"
    path = "rls"
    public = true
    cache = false
    files = [
      "tmp/rls.${TAG}",
    ]
  }

  step {
    type = "git-tag"
    name = "${TAG}"
  }

  step {
    type = "shell"
    cmd = "rm tmp/rls.${TAG}"
  }
}
```
assistant