Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/goreleaser/goreleaser/v2.7.0/www/docs/static/schema-pro.json

version: 2

includes:
Expand Down Expand Up @@ -49,6 +51,43 @@ nix:
--fish <($out/bin/dagger completion fish) \
--zsh <($out/bin/dagger completion zsh)

# https://goreleaser.com/customization/winget/
winget:
- name: dagger
repository:
owner: "{{ .Env.GH_ORG_NAME }}"
name: winget-pkgs
branch: "{{ .ProjectName }}-{{ .Version }}"
pull_request:
enabled: true
check_boxes: true
base:
owner: microsoft
name: winget-pkgs
branch: master
commit_author:
name: dagger-bot
email: [email protected]
url_template: "https://{{ .Env.ARTEFACTS_FQDN }}/dagger/releases/{{ .Version }}/{{ .ArtifactName }}"
homepage: "https://dagger.io"
publisher: Dagger
short_description: "Dagger is an integrated platform to orchestrate the delivery of applications"
license: "asl20"
publisher_url: "https://dagger.io"
publisher_support_url: https://github.com/dagger/dagger/issues/new/choose
package_identifier: Dagger.Cli
use: archive
skip_upload: false
tags:
- dagger
- cli
- cicd
- workflows
- sandbox
- containers
- devops
- llm

Comment thread
pjmagee marked this conversation as resolved.
Resolved
blobs:
- provider: s3
region: "{{ .Env.AWS_REGION }}"
Expand Down
44 changes: 35 additions & 9 deletions docs/current_docs/partials/_install-cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -97,40 +97,57 @@ To see the installed version of dagger:

<TabItem value="Windows">

The Dagger CLI can be installed on Windows using either Windows Package Manager (winget) or PowerShell.

<Tabs>
<TabItem value="winget">

The simplest way to install Dagger on Windows is using the Windows Package Manager:

```powershell
winget install Dagger.Cli

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to check - does this work, even without pointing it to github.com/dagger/winget? How does namespacing work here?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the intention that this automatically PR to the main winget repo? I think if so, we need to use the pull_request section.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The winget install Dagger.Cli already works right now, with no 'config' needed by a windows OS user out of the box right now. I'm maintaining the published winget manifest - which points to the dagger zip releases. the manifest is i guess 'namespacing'? maybe i dont understand what you mean by namespacing.

but it's under windows community winget repository /d/Dagger/Cli/manifests

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, i was not aware of the pull_request section.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed up the repository section with pull request and the microsoft pgks repository

```

To verify the installation:

```powershell
dagger version
```

</TabItem>
<TabItem value="pwsh">

The Dagger CLI can be installed on Windows via a PowerShell 7.0 script.

The quickest way of installing the latest stable release of `dagger` on Windows is to use [install.ps1](https://github.com/dagger/dagger/blob/main/install.ps1):

```powershell
Invoke-WebRequest -UseBasicParsing -Uri https://dl.dagger.io/dagger/install.ps1 | Invoke-Expression; Install-Dagger
iwr -useb https://dl.dagger.io/dagger/install.ps1 | iex; Install-Dagger
```

To install Dagger to a custom location, specify the location using the `-InstallPath` parameter.

```powershell
Invoke-WebRequest -UseBasicParsing -Uri https://dl.dagger.io/dagger/install.ps1 | Invoke-Expression;
Install-Dagger -InstallPath C:\tools\dagger
iwr -useb https://dl.dagger.io/dagger/install.ps1 | iex; Install-Dagger -InstallPath C:\tools\dagger
```

To install a specific version of Dagger, specify the version with the `-DaggerVersion` parameter.

<CodeBlock language="powershell">
{`Invoke-WebRequest -UseBasicParsing -Uri https://dl.dagger.io/dagger/install.ps1 | Invoke-Expression;\n`}
{`iwr -useb https://dl.dagger.io/dagger/install.ps1 | iex;\n`}
{`Install-Dagger -DaggerVersion ${daggerVersion}`}
</CodeBlock>

For an interactive installation process, include the `-Interactive` switch.

```powershell
Invoke-WebRequest -UseBasicParsing -Uri https://dl.dagger.io/dagger/install.ps1 | Invoke-Expression;
Install-Dagger -Interactive
iwr -useb https://dl.dagger.io/dagger/install.ps1 | iex; Install-Dagger -Interactive
```

For further customization, such as adding Dagger to your system's PATH, additional parameters are available. To view all available options:

```powershell
Invoke-WebRequest -UseBasicParsing -Uri https://dl.dagger.io/dagger/install.ps1 | Invoke-Expression;
Get-Command -Name Install-Dagger -Syntax
iwr -useb https://dl.dagger.io/dagger/install.ps1 | iex; gcm -Name Install-Dagger -Syntax
```

By default, without specifying the `-InstallPath`, Dagger will be installed in the `<your home folder>\dagger` directory.
Expand All @@ -145,6 +162,9 @@ where.exe dagger
</TabItem>
</Tabs>

</TabItem>
</Tabs>

### Development release

:::warning
Expand All @@ -171,16 +191,22 @@ curl -fsSL https://dl.dagger.io/dagger/install.sh | DAGGER_COMMIT=head sh
This will install the development release of the Dagger CLI in `./bin/dagger`.
</TabItem>
<TabItem value="Windows">

<Tabs>
<TabItem value="pwsh">
To install the latest development release, use the following command:

```powershell
Invoke-WebRequest -UseBasicParsing -Uri https://dl.dagger.io/dagger/install.ps1 -DaggerCommit head
iwr -useb https://dl.dagger.io/dagger/install.ps1 | iex; Install-Dagger -DaggerCommit head
```

This will install the development release of the Dagger CLI in the `<your home folder>\dagger` directory.
</TabItem>
</Tabs>

</TabItem>
</Tabs>

:::warning
Running this CLI against the stable Dagger Engine will, by default, stop and remove the stable version and install a development version of the Dagger Engine instead. You may prefer to install it in an isolated environment so as to avoid conflicts.
:::
Expand Down