Skip to content

Template dagger CLI version in docs #1854

Closed

Description

@gerhard

We currently have 0.2.0 hard-coded in a bunch of files in ./docs:

dagger on  main [$] via 🐹 v1.17.6
❯ rg 0.2.0 docs
docs/core-concepts/1213-dagger-cue.md
20:| `#Plan`    | [plan.cue](https://github.com/dagger/dagger/blob/v0.2.0/pkg/dagger.io/dagger/plan.cue) | A special kind of program which `dagger` can execute |
28:| `#Address`     | [types.cue](https://github.com/dagger/dagger/blob/v0.2.0/pkg/dagger.io/dagger/types.cue) | Network service address                     |
29:| `#CacheDir`    | [exec.cue](https://github.com/dagger/dagger/blob/v0.2.0/pkg/dagger.io/dagger/exec.cue)   | A (best effort) persistent cache dir        |
30:| `#FS`          | [types.cue](https://github.com/dagger/dagger/blob/v0.2.0/pkg/dagger.io/dagger/types.cue) | Reference to a filesystem tree              |
31:| `#HealthCheck` | [image.cue](https://github.com/dagger/dagger/blob/v0.2.0/pkg/dagger.io/dagger/image.cue) | Container health check                      |
32:| `#ImageConfig` | [image.cue](https://github.com/dagger/dagger/blob/v0.2.0/pkg/dagger.io/dagger/image.cue) | Container image config                      |
33:| `#Mount`       | [exec.cue](https://github.com/dagger/dagger/blob/v0.2.0/pkg/dagger.io/dagger/exec.cue)   | Transient filesystem mount                  |
34:| `#Ref`         | [image.cue](https://github.com/dagger/dagger/blob/v0.2.0/pkg/dagger.io/dagger/image.cue) | An address for a remote container image     |
35:| `#Scratch`     | [types.cue](https://github.com/dagger/dagger/blob/v0.2.0/pkg/dagger.io/dagger/types.cue) | An empty directory                          |
36:| `#Secret`      | [types.cue](https://github.com/dagger/dagger/blob/v0.2.0/pkg/dagger.io/dagger/types.cue) | Secure reference to an external secret      |
37:| `#Service`     | [types.cue](https://github.com/dagger/dagger/blob/v0.2.0/pkg/dagger.io/dagger/types.cue) | Reference to network service endpoints      |
38:| `#TempDir`     | [exec.cue](https://github.com/dagger/dagger/blob/v0.2.0/pkg/dagger.io/dagger/exec.cue)   | A temporary directory for command execution |
52:| `#Copy`         | [fs.cue](https://github.com/dagger/dagger/blob/v0.2.0/pkg/dagger.io/dagger/fs.cue)           | Copy files between two filesystem trees                  |
53:| `#DecodeSecret` | [secrets.cue](https://github.com/dagger/dagger/blob/v0.2.0/pkg/dagger.io/dagger/secrets.cue) | Decode a secret without leaking its contents             |
54:| `#Dockerfile`   | [image.cue](https://github.com/dagger/dagger/blob/v0.2.0/pkg/dagger.io/dagger/image.cue)     | Build a container image using a Dockerfile               |
55:| `#Exec`         | [exec.cue](https://github.com/dagger/dagger/blob/v0.2.0/pkg/dagger.io/dagger/exec.cue)       | Execute a command in a docker-compatible container       |
56:| `#GitPull`      | [git.cue](https://github.com/dagger/dagger/blob/v0.2.0/pkg/dagger.io/dagger/git.cue)         | Download a repository from a remote git server           |
57:| `#GitPush`      | [git.cue](https://github.com/dagger/dagger/blob/v0.2.0/pkg/dagger.io/dagger/git.cue)         | Upload a repository to a remote git server               |
58:| `#HTTPFetch`    | [http.cue](https://github.com/dagger/dagger/blob/v0.2.0/pkg/dagger.io/dagger/http.cue)       | Download an archive from an HTTP server                  |
59:| `#Mkdir`        | [fs.cue](https://github.com/dagger/dagger/blob/v0.2.0/pkg/dagger.io/dagger/fs.cue)           | Create a directory in a filesystem tree                  |
60:| `#NewSecret`    | [secrets.cue](https://github.com/dagger/dagger/blob/v0.2.0/pkg/dagger.io/dagger/secrets.cue) | Dynamically create a new secret                          |
61:| `#Pull`         | [image.cue](https://github.com/dagger/dagger/blob/v0.2.0/pkg/dagger.io/dagger/image.cue)     | Download an image from a docker registry                 |
62:| `#Push`         | [image.cue](https://github.com/dagger/dagger/blob/v0.2.0/pkg/dagger.io/dagger/image.cue)     | Upload an image to a docker registry                     |
63:| `#ReadFile`     | [fs.cue](https://github.com/dagger/dagger/blob/v0.2.0/pkg/dagger.io/dagger/fs.cue)           | Read a file from a filesystem tree                       |
64:| `#Scratch`      | [fs.cue](https://github.com/dagger/dagger/blob/v0.2.0/pkg/dagger.io/dagger/fs.cue)           | Create an empty filesystem tree                          |
65:| `#Set`          | [image.cue](https://github.com/dagger/dagger/blob/v0.2.0/pkg/dagger.io/dagger/image.cue)     | Modify a docker image                                    |
66:| `#Source`       | [fs.cue](https://github.com/dagger/dagger/blob/v0.2.0/pkg/dagger.io/dagger/fs.cue)           | Access the source for the current CUE package            |
67:| `#Subdir`       | [fs.cue](https://github.com/dagger/dagger/blob/v0.2.0/pkg/dagger.io/dagger/fs.cue)           | Read a subdirectory from a filesystem tree               |
68:| `#TrimSecret`   | [secrets.cue](https://github.com/dagger/dagger/blob/v0.2.0/pkg/dagger.io/dagger/secrets.cue) | Trim leading and trailing space characters from a secret |
69:| `#WriteFile`    | [fs.cue](https://github.com/dagger/dagger/blob/v0.2.0/pkg/dagger.io/dagger/fs.cue)           | Write a file to a filesystem tree                        |

docs/getting-started/1200-local-dev.md
46:curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=0.2.0 sh
49:dagger 0.2.0 (e499297e) darwin/arm64
61:git checkout v0.2.0
139:curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=0.2.0 sh
142:dagger 0.2.0 (e499297e) linux/amd64
154:git checkout v0.2.0
240:git checkout v0.2.0

We should bump it whenever we a new version gets released.

I know one other Go-based project which does this nicely:

Agent & server versions on the website are always in sync. It is re-generated in Vercel after a release gets created.
😉 @brancz

Learned this in the context of thechangelog/changelog.com#396

Maybe we can look into this together @slumbering 🤔


If we don't get to this by Monday, March 28, I intend to bump the version using some bash-fu and wire it into https://github.com/dagger/dagger/actions/workflows/auto-release.yml

Activity

  1. TomChv commented on Jul 12, 2022

    @TomChv
    Member

    @gerhard Any update on this issue?

  2. added
    area/documentation
    on Jul 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions