Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Add ESC CLI version shortcode #3459

Merged
merged 1 commit into from
Oct 10, 2023
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
1 change: 1 addition & 0 deletions static/esc/latest-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.5.1
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This file is just a placeholder in this repo (to dev with locally); the version in pulumi/docs will take precedence over it.

26 changes: 13 additions & 13 deletions themes/default/content/docs/install/esc.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ $ brew install pulumi/tap/esc

### MacOS binary download

<a class="btn btn-secondary mx-2" href="https://get.pulumi.com/esc/releases/esc-v0.5.1-darwin-x64.tar.gz">amd64</a>
<a class="btn btn-secondary mx-2" href="https://get.pulumi.com/esc/releases/esc-v0.5.1-darwin-arm64.tar.gz">arm64</a></p>
<a class="btn btn-secondary mx-2" href="https://get.pulumi.com/esc/releases/esc-v{{< latest-version-esc >}}-darwin-x64.tar.gz">amd64</a>
<a class="btn btn-secondary mx-2" href="https://get.pulumi.com/esc/releases/esc-v{{< latest-version-esc >}}-darwin-arm64.tar.gz">arm64</a></p>

macOS Sierra (10.12) or later is required.

The latest version of Pulumi ESC is 0.5.1.
The latest version of Pulumi ESC is {{< latest-version-esc >}}.

{{% notes type="info" %}}
For a streamlined Pulumi ESC walkthrough, including language runtime installation and cloud configuration, see the [Get Started](/docs/pulumi-cloud/esc/getting-started) guides.
Expand Down Expand Up @@ -132,7 +132,7 @@ The installer script can be rerun to subsequently install new updates.
If you do not wish to use the previous options, you can install Pulumi manually.

<!-- markdownlint-disable url -->
1. Download [Pulumi ESC 0.5.1 for macOS](https://get.pulumi.com/esc/releases/esc-v0.5.1-darwin-x64.tar.gz).
1. Download [Pulumi ESC {{< latest-version-esc >}} for macOS](https://get.pulumi.com/esc/releases/esc-v{{< latest-version-esc >}}-darwin-x64.tar.gz).
<!-- markdownlint-enable url -->

1. Extract the tarball and move the binaries in the `esc` directory to a directory included in your system's `$PATH`.
Expand All @@ -155,11 +155,11 @@ $ curl -fsSL https://get.pulumi.com/esc/install.sh | sh
</div>
<div class="w-full">
<h3 class="no-anchor pt-4"><i class="fas fa-download pr-2"></i>Linux Binary Download</h3>
<p><a class="btn btn-secondary mx-2" href="https://get.pulumi.com/esc/releases/esc-v0.5.1-linux-x64.tar.gz">amd64</a></p>
<p><a class="btn btn-secondary mx-2" href="https://get.pulumi.com/esc/releases/esc-v{{< latest-version-esc >}}-linux-x64.tar.gz">amd64</a></p>
</div>
</div>

The latest version of Pulumi ESC is 0.5.1.
The latest version of Pulumi ESC is {{< latest-version-esc >}}.

{{< get-started-note >}}

Expand Down Expand Up @@ -205,7 +205,7 @@ See [How to permanently set $PATH on Unix](https://stackoverflow.com/questions/1
Alternatively, you can install Pulumi ESC manually. We provide a prebuilt binary for Linux.

<!-- markdownlint-disable url -->
1. Download [Pulumi ESC 0.5.1 for Linux x64](https://get.pulumi.com/esc/releases/esc-v0.5.1-linux-x64.tar.gz).
1. Download [Pulumi ESC {{< latest-version-esc >}} for Linux x64](https://get.pulumi.com/esc/releases/esc-v{{< latest-version-esc >}}-linux-x64.tar.gz).
<!-- markdownlint-enable url -->

1. Extract the tarball and move the binaries in the `esc` directory to a directory included in your system's `$PATH`.
Expand All @@ -221,14 +221,14 @@ Alternatively, you can install Pulumi ESC manually. We provide a prebuilt binary
<div class="w-full">
<h3 class="no-anchor pt-4"><i class="fas fa-download pr-2"></i>Windows Binary Download</h3>
<p>
<a class="btn btn-secondary mx-2" href="https://get.pulumi.com/esc/releases/esc-v0.5.1-windows-x64.zip">amd64</a>
<a class="btn btn-secondary mx-2" href="https://get.pulumi.com/esc/releases/esc-v{{< latest-version-esc >}}-windows-x64.zip">amd64</a>
</p>
</div>
</div>

Windows 8 and later are supported.

The latest version of Pulumi ESC is 0.5.1. For older versions, see [Available Versions](/docs/install/versions/).
The latest version of Pulumi ESC is {{< latest-version-esc >}}. For older versions, see [Available Versions](/docs/install/versions/).

{{< get-started-note >}}

Expand Down Expand Up @@ -274,7 +274,7 @@ This will install the `esc.exe` CLI to `%USERPROFILE%\.pulumi\bin` and add it to
Alternatively, you can install Pulumi ESC manually using binaries built for Windows x64.

<!-- markdownlint-disable url -->
1. Download [Pulumi ESC 0.5.1 binaries for Windows x64](https://get.pulumi.com/esc/releases/esc-v0.5.1-windows-x64.zip). For prior versions and release notes, see the [Available Versions](/docs/install/versions/) page.
1. Download [Pulumi ESC {{< latest-version-esc >}} binaries for Windows x64](https://get.pulumi.com/esc/releases/esc-v{{< latest-version-esc >}}-windows-x64.zip). For prior versions and release notes, see the [Available Versions](/docs/install/versions/) page.
<!-- markdownlint-enable url -->

1. Unzip the file and extract the contents to a folder such as `C:\esc`.
Expand All @@ -298,7 +298,7 @@ After installing Pulumi ESC, verify everything is in working order by running th

```bash
$ esc version
v0.5.1
v{{< latest-version-esc >}}
```

{{% /choosable %}}
Expand All @@ -307,7 +307,7 @@ v0.5.1

```bash
$ esc version
v0.5.1
v{{< latest-version-esc >}}
```

{{% /choosable %}}
Expand All @@ -316,7 +316,7 @@ v0.5.1

```bash
> esc version
v0.5.1
v{{< latest-version-esc >}}
```

{{% /choosable %}}
Expand Down
7 changes: 7 additions & 0 deletions themes/default/layouts/shortcodes/latest-version-esc.html
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{{- $latestVersionFile := "/static/esc/latest-version" -}}
{{- $latestVersion := readFile $latestVersionFile -}}
{{/* The file must not contain whitespace or newlines, as dependencies may not be resilient. */}}
{{- if gt (len (findRE "\\s" $latestVersion)) 0 -}}
{{- errorf "%q must not contain whitespace or newlines" $latestVersionFile -}}
{{- end -}}
{{- $latestVersion -}}
Loading