Skip to content

Commit

Permalink
Merge pull request #29 from kishaningithub/update-pkgx-and-docker
Browse files Browse the repository at this point in the history
Add installation step using pkgx
  • Loading branch information
kishaningithub committed Jun 7, 2024
2 parents 90804c3 + 41eff7e commit dd6eded
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ nfpms:
- rpm

kos:
- main: .
base_image: alpine
- base_image: alpine
repository: ghcr.io/kishaningithub/tf-import-gen
platforms:
- linux/amd64
Expand Down
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Tool to generate terraform import statements to simplify state migrations from o
* [Installation](#installation)
* [Using Homebrew (Mac and linux)](#using-homebrew-mac-and-linux)
* [Using docker](#using-docker)
* [Using pkgx](#using-pkgx)
* [Others](#others)
* [Examples](#examples)
* [Generating import statements by module](#generating-import-statements-by-module)
Expand All @@ -37,6 +38,20 @@ alias tf-import-gen="docker run -i ghcr.io/kishaningithub/tf-import-gen:latest"
terraform show -json | tf-import-gen
```

### Using pkgx

```bash
terraform show -json | pkgx tf-import-gen@latest
```

or if you prefer the env style which only adds tf-import-gen to your current shell session

```bash
env +tf-import-gen@latest

terraform show -json | tf-import-gen --version
```

### Others

Head over to the [releases page](https://github.com/kishaningithub/tf-import-gen/releases) and download a binary for your platform
Expand Down

0 comments on commit dd6eded

Please sign in to comment.