generated from ekristen/go-project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #82 from ekristen/beta-prep
chore: docs and scripts
- Loading branch information
Showing
12 changed files
with
351 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: installers | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
generate-installers: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: set-version | ||
run: | | ||
sed -e "s/__VERSION__/${{ github.event.release.tag_name }}/" scripts/installer.tpl.sh > installer.sh | ||
sed -e "s/__VERSION__/${{ github.event.release.tag_name }}/" scripts/installer.tpl.ps1 > installer.ps1 | ||
- name: upload | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
files: | | ||
installer.sh | ||
installer.ps1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
public/ | ||
.env* | ||
*.key | ||
installer.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,43 +38,37 @@ and many others to pre-compile their software and put their binaries up on GitHu | |
|
||
## Install | ||
|
||
## MacOS/Linux | ||
### MacOS/Linux | ||
|
||
1. Set your path `export PATH=$HOME/.distillery/bin:$PATH` | ||
2. Download the latest release from the [releases page](https://github.com/ekristen/distillery/releases) | ||
3. Extract and Run `./dist install ekristen/distillery` | ||
4. Delete `./dist` and the .tar.gz, now use `dist` normally | ||
5. Run `dist install owner/repo` to install a binary from GitHub Repository | ||
|
||
## Windows | ||
### Windows | ||
|
||
1. [Set Your Path](#set-your-path) | ||
2. Download the latest release from the [releases page](https://github.com/ekristen/distillery/releases) | ||
3. Extract and Run `.\dist.exe install ekristen/distillery` | ||
4. Delete `.\dist.exe` and the .zip, now use `dist` normally | ||
5. Run `dist install owner/repo` to install a binary from GitHub Repository | ||
|
||
### Set Your Path | ||
#### Set Your Path | ||
|
||
#### For Current Session | ||
##### For Current Session | ||
|
||
```powershell | ||
$env:Path = "C:\Users\<username>\.distillery\bin;" + $env:Path | ||
``` | ||
|
||
#### For Current User | ||
##### For Current User | ||
|
||
```powershell | ||
[Environment]::SetEnvironmentVariable("Path", "C:\Users\<username>\.distillery\bin;" + $env:Path, [EnvironmentVariableTarget]::User) | ||
``` | ||
|
||
### For System | ||
|
||
```powershell | ||
[Environment]::SetEnvironmentVariable("Path", "C:\Users\<username>\.distillery\bin;" + $env:Path, [EnvironmentVariableTarget]::Machine) | ||
``` | ||
|
||
### Uninstall | ||
## Uninstall | ||
|
||
1. Run `dist info` | ||
2. Remove the directories listed under the cleanup section | ||
|
@@ -114,7 +108,8 @@ dist install homebrew/opentofu | |
- GitHub | ||
- GitLab | ||
- Homebrew (binaries only, if anything has a dependency, it will not work at this time) | ||
- Hashicorp (special handling for their releases, pointing to github repos will automatically pass through) | ||
- Hashicorp (special handling for their releases, pointing to GitHub repos will automatically pass through) | ||
- Kubernetes (special handling for their releases, pointing to GitHub repos will automatically pass through) | ||
|
||
### Authentication | ||
|
||
|
@@ -144,6 +139,12 @@ versions are symlinked with the suffix `@version` this means you can have multip | |
It also means you can call any version any time using the `@version` syntax or if you are using something like [direnv](https://direnv.net/) | ||
you can set aliases in your `.envrc` file for specific versions. | ||
|
||
#### Example | ||
|
||
```console | ||
alias terraform="[email protected]" | ||
``` | ||
|
||
## Directory Structure | ||
|
||
This is the default directory structure that distillery uses. Some of this can be overridden via the configuration. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,66 +8,19 @@ The default location for the configuration file is operating system dependent. Y | |
|
||
The configuration file is optional. If it is not found, the default configuration is used. | ||
|
||
## Aliases | ||
!!! note - "Pro Tip" | ||
You can change the default location of your configuration file by setting the `DISTILLERY_CONFIG` environment variable. | ||
|
||
You can configure aliases for your installation sources. This is useful if you don't want to type the whole | ||
path all the time. | ||
## Default Configuration | ||
|
||
### Simple Alias Definition | ||
=== "YAML" | ||
|
||
```yaml | ||
aliases: | ||
dist: ekristen/distillery | ||
aws-nuke: ekristen/aws-nuke | ||
age: filosottile/age | ||
``` | ||
```yaml | ||
default_provider: github | ||
``` | ||
|
||
OR in TOML | ||
=== "TOML" | ||
|
||
```toml | ||
[aliases] | ||
dist = "ekristen/distillery" | ||
aws-nuke = "ekristen/aws-nuke" | ||
age = "filosottile/age" | ||
``` | ||
|
||
### Alias with Version | ||
|
||
```yaml | ||
aliases: | ||
dist: ekristen/distillery | ||
aws-nuke: ekristen/aws-nuke | ||
age: filosottile/[email protected] | ||
``` | ||
OR in TOML | ||
```toml | ||
[aliases] | ||
dist = "ekristen/distillery" | ||
aws-nuke = "ekristen/aws-nuke" | ||
age = "filosottile/[email protected]" | ||
``` | ||
|
||
### Alias with Version as Object | ||
|
||
```yaml | ||
aliases: | ||
dist: ekristen/distillery | ||
aws-nuke: ekristen/aws-nuke | ||
age: | ||
name: filosottile/age | ||
version: 1.0.0 | ||
``` | ||
OR in TOML | ||
```toml | ||
[aliases] | ||
dist = "ekristen/distillery" | ||
aws-nuke = "ekristen/aws-nuke" | ||
|
||
[aliases.age] | ||
name = "filosottile/age" | ||
version = "1.0.0" | ||
``` | ||
```toml | ||
default_provider = "github" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
# Aliases | ||
|
||
You can configure aliases for your installation sources. This is useful if you don't want to type the whole | ||
path all the time. | ||
|
||
## Simple Definition | ||
|
||
=== "YAML" | ||
|
||
```yaml | ||
aliases: | ||
dist: ekristen/distillery | ||
aws-nuke: ekristen/aws-nuke | ||
age: filosottile/age | ||
``` | ||
|
||
=== "TOML" | ||
|
||
```toml | ||
[aliases] | ||
dist = "ekristen/distillery" | ||
aws-nuke = "ekristen/aws-nuke" | ||
age = "filosottile/age" | ||
``` | ||
|
||
## With Version | ||
|
||
=== "YAML" | ||
|
||
```yaml | ||
aliases: | ||
dist: ekristen/distillery | ||
aws-nuke: ekristen/aws-nuke | ||
age: filosottile/[email protected] | ||
``` | ||
|
||
=== "TOML" | ||
|
||
```toml | ||
[aliases] | ||
dist = "ekristen/distillery" | ||
aws-nuke = "ekristen/aws-nuke" | ||
age = "filosottile/[email protected]" | ||
``` | ||
|
||
## With Version as Object | ||
|
||
=== "YAML" | ||
|
||
```yaml | ||
aliases: | ||
dist: ekristen/distillery | ||
aws-nuke: ekristen/aws-nuke | ||
age: | ||
name: filosottile/age | ||
version: 1.0.0 | ||
``` | ||
|
||
=== "TOML" | ||
|
||
```toml | ||
[aliases] | ||
dist = "ekristen/distillery" | ||
aws-nuke = "ekristen/aws-nuke" | ||
|
||
[aliases.age] | ||
name = "filosottile/age" | ||
version = "1.0.0" | ||
``` | ||
|
||
## With Providers | ||
|
||
=== "YAML" | ||
|
||
|
||
```yaml | ||
aliases: | ||
age: github/filosottile/age | ||
gitlab-runner: gitlab/gitlab-org/gitlab-runner | ||
``` | ||
|
||
=== "TOML" | ||
|
||
```toml | ||
[aliases] | ||
age = "github/filosottile/age" | ||
gitlab-runner = "gitlab/gitlab-org/gitlab-runner" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.